Solomon made a treaty with Pharaoh king of Egypt. He married Pharaoh’s daughter and brought her to the City of David until he finished building his palace, the house of the Lord, and the wall around Jerusalem.
and in the eleventh year, in the month Bul (which is the eighth month), the house was completely finished. All the details and plans were met. So he took seven years to build it.