1 Kings 3:3-5 (NKJV)
And Solomon loved the Lord, walking in the statutes of his father David, except that he sacrificed and burned incense at the high places.
4 Now the king went to Gibeon to sacrifice there, for that was the great high place: Solomon offered a thousand burnt offerings on that altar.
5 At Gibeon the Lord appeared to Solomon in a dream by night; and God said, “Ask! What shall I give you?”