Joshua 23:12-16

ISV(i) 12 because if you ever turn back and cling to those who remain of these nations by intermarrying with them and associating one with another, 13 know for certain that the LORD your God will not continue to drive out these nations ahead of you. Instead, they will be a snare and a trap for you, a whip to your backs, and thorns in your eyes, until you perish from this good land that the LORD your God has given you.
14 “Look here: today I’m going down the path that everyone on earth takes, and you know with all your hearts and souls that not a single word of all of the good things that the LORD your God spoke about you has failed to happen. Everything has been fulfilled about you—not one of them has failed. 15 However, just as all of the good things have come about that the LORD your God promised, so also the LORD will bring upon you all of the threats until he has destroyed you from possessing this good land that he has given you. 16 When you break the covenant of the LORD your God that he commanded you to obey by going to serve other gods and worship them, then the anger of the LORD will blaze against you, and you will perish quickly from this good land that he gave you.”