Solomon made an alliance with Pharaoh king of Egypt by marrying Pharaoh’s daughter. Solomon brought her to the city of David until he finished building his palace, the LORD’s temple, and the wall surrounding Jerusalem. However, the people were sacrificing on the high places, because until that time a temple for the LORD’s name had not been built. Solomon loved the LORD by walking in the statutes of his father David, but he also sacrificed and burned incense on the high places.
The king went to Gibeon to sacrifice there because it was the most famous high place. He offered a thousand burnt offerings on that altar. At Gibeon the LORD appeared to Solomon in a dream at night. God said, “Ask. What should I give you?”
And Solomon replied, “You have shown great and faithful love to your servant, my father David, because he walked before you in faithfulness, righteousness, and integrity. You have continued this great and faithful love for him by giving him a son to sit on his throne, as it is today.
“LORD my God, you have now made your servant king in my father David’s place. Yet I am just a youth with no experience in leadership. Your servant is among your people you have chosen, a people too many to be numbered or counted. So give your servant a receptive heart to judge your people and to discern between good and evil. For who is able to judge this great people of yours?”
Now it pleased the Lord that Solomon had requested this. So God said to him, “Because you have requested this and did not ask for long life or riches for yourself, or the death of your enemies, but you asked discernment for yourself to administer justice, I will therefore do what you have asked. I will give you a wise and understanding heart, so that there has never been anyone like you before and never will be again. In addition, I will give you what you did not ask for: both riches and honor, so that no king will be your equal during your entire life. If you walk in my ways and keep my statutes and commands just as your father David did, I will give you a long life.”
Then Solomon woke up and realized it had been a dream. He went to Jerusalem, stood before the ark of the Lord’s covenant, and offered burnt offerings and fellowship offerings. Then he held a feast for all his servants.