Passage
And Solomon allied himself by marriage with Pharaoh king of Egypt, and took Pharaoh's daughter, and brought her into the city of David, until he had ended building his own house, and the house of Jehovah, and the wall of Jerusalem round about.
Nearby Context
1 Kings 3:1 And Solomon allied himself by marriage with Pharaoh king of Egypt, and took Pharaoh's daughter, and brought her into the city of David, until he had ended building his own house, and the house of Jehovah, and the wall of Jerusalem round about.
1 Kings 3:2 Only, the people sacrificed on the high places; for there was no house built to the name of Jehovah, until those days.
1 Kings 3:3 And Solomon loved Jehovah, walking in the statutes of David his father; only, he sacrificed and burned incense on the high places.
Study Lenses
The verse centers on "solomon", "allied", "himself", "marriage", "pharaoh", "king", "egypt", and "took". It is saying that the verse draws attention to "solomon" and "allied", so its meaning should be read from those terms before moving to application.
The next verse adds "Only the people sacrificed on the high...", so "solomon" and "allied" should be read forward into that movement. In 1 Kings context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "solomon" and "allied" with trust shaped by these words, not by a vague optimism outside the passage.