This is a complete side by side story. Again, Kings is longer. But also, God appears to Solomon in Kings, no explicitly in a dream this time, but it is implied, and makes a covenant with Solomon that his line will stay in power unless they fall out of line and fail to keep the commandments. This is much more of a contract.
The two sources disagree about the role the Pharaoh’s daughter played in some land to the South. First From Kings.
15 Here is the account of the forced labor King Solomon conscripted to build the Lord’s temple, his own palace, the terraces,[f] the wall of Jerusalem, and Hazor, Megiddo and Gezer. 16 (Pharaoh king of Egypt had attacked and captured Gezer. He had set it on fire. He killed its Canaanite inhabitants and then gave it as a wedding gift to his daughter, Solomon’s wife. 17 And Solomon rebuilt Gezer.) He built up Lower Beth Horon, 18 Baalath, and Tadmor[g] in the desert, within his land, 19 as well as all his store cities and the towns for his chariots and for his horses[h]—whatever he desired to build in Jerusalem, in Lebanon and throughout all the territory he ruled.
. . .
After Pharaoh’s daughter had come up from the City of David to the palace Solomon had built for her, he constructed the terraces.
Solomon then went to Hamath Zobah and captured it. 4 He also built up Tadmor in the desert and all the store cities he had built in Hamath. 5 He rebuilt Upper Beth Horon and Lower Beth Horon as fortified cities, with walls and with gates and bars, 6 as well as Baalath and all his store cities, and all the cities for his chariots and for his horses[b]—whatever he desired to build in Jerusalem, in Lebanon and throughout all the territory he ruled.
. . .
Solomon brought Pharaoh’s daughter up from the City of David to the palace he had built for her, for he said, “My wife must not live in the palace of David king of Israel, because the places the ark of the Lord has entered are holy.”
Not only does her pop lose credit for conquering and gifting some land to her, the moving her into her own palace is made to be explicitly due to her unworthiness as a foreigner, I presume. Also, this passage makes clear that Solomon only enslaved foreigners. Hmm. So we won’t look here for Biblical guidance on immigration policy.