Passage
And Solomon joineth in marriage with Pharaoh king of Egypt, and taketh the daughter of Pharaoh, and bringeth her in unto the city of David, till he completeth to build his own house, and the house of Jehovah, and the wall of Jerusalem round about.
Nearby Context
1 Kings 3:1 And Solomon joineth in marriage with Pharaoh king of Egypt, and taketh the daughter of Pharaoh, and bringeth her in unto the city of David, till he completeth to build his own house, and the house of Jehovah, and the wall of Jerusalem round about.
1 Kings 3:2 Only, the people are sacrificing in high places, for there hath not been built a house for the name of Jehovah till those days.
1 Kings 3:3 And Solomon loveth Jehovah, to walk in the statutes of David his father--only, in high places he is sacrificing and making perfume--
Study Lenses
The verse centers on "solomon", "joineth", "marriage", "pharaoh", "king", "egypt", "taketh", and "daughter". It is saying that the verse draws attention to "solomon" and "joineth", so its meaning should be read from those terms before moving to application.
The next verse adds "Only the people are sacrificing in high...", so "solomon" and "joineth" 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 "joineth" with trust shaped by these words, not by a vague optimism outside the passage.