In the Hebrew Bible God’s people were told not to intermarry.
Let’s see how Solomon handled that command after he disobeyed by marrying the Egyptian ruler’s daughter….
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.” (2 Chronicles 8:11)
Here’s how he justified himself: I broke God’s command to not intermarry, but at least I’m not letting her live in the palace where the sacred Ark of the Covenant was once stored. I’ll give her her own palace instead. Perhaps that will placate God so he’ll be OK with my intermarrying!
That sounds rather twisted: Solomon gets to have his Egyptian cake and eat it too.
Oh, I would never make a clever excuse like Solomon did to try to get away with what God prohibits — would I???