Joshua 23:12-13
23:12 But if you ever turn away and make alliances with these nations that remain near you, and intermarry with them and establish friendly relations with them,
23:13 know for certain that the Lord our God will no longer drive out these nations from before you. They will trap and ensnare you; they will be a whip that tears your sides and thorns that blind your eyes until you disappear from this good land the Lord your God gave you.