Solomon loved the LORD and followed all the instructions of his father, David, except that Solomon, too, offered sacrifices and burned incense at the local altars.
The most important of these altars was at Gibeon, so the king went there and sacrificed one thousand burnt offerings.
That night the LORD appeared to Solomon in a dream, and God said, "What do you want? Ask, and I will give it to you!"
Solomon replied, "You were wonderfully kind to my father, David, because he was honest and true and faithful to you. And you have continued this great kindness to him today by giving him a son to succeed him.
O LORD my God, now you have made me king instead of my father, David, but I am like a little child who doesn't know his way around.
And here I am among your own chosen people, a nation so great they are too numerous to count!
Give me an understanding mind so that I can govern your people well and know the difference between right and wrong. For who by himself is able to govern this great nation of yours?"
The Lord was pleased with Solomon's reply and was glad that he had asked for wisdom.
So God replied, "Because you have asked for wisdom in governing my people and have not asked for a long life or riches for yourself or the death of your enemies --
I will give you what you asked for! I will give you a wise and understanding mind such as no one else has ever had or ever will have!
And I will also give you what you did not ask for -- riches and honor! No other king in all the world will be compared to you for the rest of your life!
And if you follow me and obey my commands as your father, David, did, I will give you a long life."
Then Solomon woke up and realized it had been a dream. He returned to Jerusalem and stood before the Ark of the Lord's covenant, where he sacrificed burnt offerings and peace offerings. Then he invited all his officials to a great banquet.