That night God appeared to Solomon and said, “Ask whatever you wish, and I will give it to you.”

“You showed so much kindness to my father David,” Solomon replied to God, “and You have made me king in his place. Now, Lord God, let Your Promise to my father David be fulfilled because You have made me king over a people as numerous as the earth’s dust. Give me wisdom and knowledge so I can lead this people, because no one can govern this great people of yours without Your Help.”

God said to Solomon, “Since this is what you wish, and because you’ve asked for wisdom and knowledge to govern My people over whom I’ve made you king, rather than asking for wealth, riches, fame, victory over those who hate you, or even a long life, your request for wisdom and knowledge is granted. But I will also give you wealth, riches, and fame beyond that of any king before you or after you.”
II Chronicles 1:7-12 (CEB)