Solomon went to see the king of Egypt. Solomon made an agreement with him to marry his daughter. They also made an alliance/agreement that their armies would not attack each other. Then Solomon brought the king’s daughter to live in the part of Jerusalem called ‘The City of David’. She lived there until Solomon’s workers had finished building his house and the temple of Yahweh and the wall around Jerusalem.
Read & study T4T 3:1And Solomon made affinity with Pharaoh king of Egypt, and took Pharaoh’s daughter, and brought her into the city of David, until he had made an end of building his own house, and the house of Jehovah, and the wall of Jerusalem round about.
Read & study ASV 3:1