1 Samuel 7:3nekhar
Then Samuel spoke to all the house of Israel, saying, "If you return to the Lord with all your heart, remove the foreign gods and the Ashtaroth from among you and direct your hearts to the Lord and serve Him alone; and He will deliver you from the hand of the Philistines."
Removing foreign gods is tied to returning to the Lord wholeheartedly.
1 Kings 11:1nokhri
Now King Solomon loved many foreign women along with the daughter of Pharaoh: Moabite, Ammonite, Edomite, Sidonian, and Hittite women,
Solomon's many foreign wives introduce the theme of foreign marriages.