Solomon arranged a marriage contract with Pharaoh, king of Egypt. He married Pharaoh’s daughter and brought her to the City of David until he had completed building his royal palace and GOD’s Temple and the wall around Jerusalem. Meanwhile, the people were worshiping at local shrines because at that time no temple had yet been built to the Name of GOD. Solomon loved GOD and continued to live in the God-honoring ways of David his father, except that he also worshiped at the local shrines, offering sacrifices and burning incense.
The king went to Gibeon, the most prestigious of the local shrines, to worship. He sacrificed a thousand Whole-Burnt-Offerings on that altar. That night, there in Gibeon, GOD appeared to Solomon in a dream: God said, “What can I give you? Ask.”
Solomon said, “You were extravagantly generous in love with David my father, and he lived faithfully in your presence, his relationships were just and his heart right. And you have persisted in this great and generous love by giving him—and this very day!—a son to sit on his throne.
“And now here I am: GOD, my God, you have made me, your servant, ruler of the kingdom in place of David my father. I’m too young for this, a mere child! I don’t know the ropes, hardly know the ‘ins’ and ‘outs’ of this job. And here I am, set down in the middle of the people you’ve chosen, a great people—far too many to ever count.
“Here’s what I want: Give me a God-listening heart so I can lead your people well, discerning the difference between good and evil. For who on their own is capable of leading your glorious people?”