1 Kings 3:2-5 New King James Version (NKJV)
2 Meanwhile the people sacrificed at the high places, because there was no house built for the name of the Lord until those days. 3 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?”