The people were still sacrificing at other worship sites because a temple for the name of the LORD had not yet been built.
Solomon loved the LORD and lived by his father David's rules. However, he still sacrificed and burned incense at these other worship sites.
King Solomon went to Gibeon to sacrifice because it was the most important place of worship. Solomon sacrificed 1,000 burnt offerings on that altar.
In Gibeon the LORD appeared to Solomon in a dream at night. He said, "What can I give you?"
Solomon responded, "You've shown great love to my father David, who was your servant. He lived in your presence with truth, righteousness, and commitment. And you continued to show him your great love by giving him a son to sit on his throne today.
"LORD my God, although I'm young and inexperienced, you've made me king in place of my father David.
I'm among your people whom you have chosen. They are too numerous to count or record.
Give me a heart that listens so that I can judge your people and tell the difference between good and evil. After all, who can judge this great people of yours?"
The LORD was pleased that Solomon asked for this.
God replied, "You've asked for this and not for a long life, or riches for yourself, or the death of your enemies. Instead, you've asked for understanding so that you can do what is right.
So I'm going to do what you've asked. I'm giving you a wise and understanding heart so that there will never be anyone like you.