31 Solomon arranged a marriage contract with Pharaoh, king of Egypt. He married Pharaoh's daughter and brought her to the City of David until he had completed building his royal palace and God's Temple and the wall around Jerusalem. 2 Meanwhile, the people were worshiping at local shrines because at that time no temple had yet been built to the Name of God.
3 Solomon loved God and continued to live in the God-honoring ways of David his father, except that he also worshiped at the local shrines, offering sacrifices and burning incense. 4 The king went to Gibeon, the most prestigious of the local shrines, to worship. He sacrificed a thousand Whole-Burnt-Offerings on that altar.
Matthew Henry's Commentary on 1 Kings 3:1-4
Commentary on 1 Kings 3:1-4
(Read 1 Kings 3:1-4)
He that loved the Lord, should, for his sake, have fixed his love upon one of the Lord's people. Solomon was a wise man, a rich man, a great man; yet the brightest praise of him, is that which is the character of all the saints, even the poorest, "He loved the Lord." Where God sows plentifully, he expects to reap accordingly; and those that truly love God and his worship, will not grudge the expenses of their religion. We must never think that wasted which is laid out in the service of God.