1 Kings 3:1-5
English Standard Version
Chapter 3
1Solomon made a marriage alliance with Pharaoh king of Egypt. He took Pharaoh 's daughter and brought her into the city of David until he had finished building his own house and the house of the Lord and the wall around Jerusalem. 2The people were sacrificing at the high places, however, because no house had yet been built for the name of the Lord.
3Solomon loved the Lord, walking in the statutes of David his father, only he sacrificed and made offerings at the high places.
4And the king went to Gibeon to sacrifice there, for that was the great high place. Solomon used to offer a thousand burnt offerings on that altar.
5At Gibeon the Lord appeared to Solomon in a dream by night, and God said, "Ask what I shall give you."