When David died, his son Solomon became king. God said, "Solomon, ask for anything you want.
I will give it to you." Solomon asked God for wisdom to rule God's people well. God was happy Solomon had asked for wisdom instead of money. So, He made Solomon the wisest and richest man who has ever lived.