Exodus 23:33

33They shall not dwell in your land, lest they make you sin against me; for if you serve their gods, ait will surely be a snare to you.”

Exodus 34:12-16

12 bTake care, lest you make a covenant with the inhabitants of the land to which you go, lest it become a csnare in your midst. 13You shall dtear down their altars and ebreak their pillars and cut down their fAsherim 14(for gyou shall worship no other god, for the Lord, whose name is Jealous, is a jealous God), 15 hlest you make a covenant with the inhabitants of the land, and when they iwhore after their gods and sacrifice to their gods and jyou are invited, you eat of his sacrifice, 16and you take of ktheir daughters for your sons, and their daughters lwhore after their gods and make your sons whore after their gods.

Numbers 33:55

55But if you do not drive out the inhabitants of the land from before you, then those of them whom you let remain shall be as mbarbs in your eyes and thorns in your sides, and they shall trouble you in the land where you dwell.

Deuteronomy 12:30-31

30take care nthat you be not ensnared to follow them, after they have been destroyed before you, and that you do not inquire about their gods, saying, ‘How did these nations serve their gods?—that I also may do the same.’ 31 oYou shall not worship the Lord your God in that way, for every pabominable thing that the Lord hates they have done for their gods, for qthey even burn their sons and their daughters in the fire to their gods.

Joshua 23:13-16

13know for certain that rthe Lord your God will no longer drive out these nations before you, sbut they shall be a snare and a trap for you, a whip on your sides and thorns in your eyes, until you perish from off this good ground that the Lord your God has given you.

14“And now tI am about to go the way of all the earth, and you know in your hearts and souls, all of you, that unot one word has failed of all the good things
Or words; also twice in verse 15
that the Lord your God promised concerning you. All have come to pass for you; not one of them has failed.
15But just as all the good things that the Lord your God promised concerning you have been fulfilled for you, so the Lord will bring upon you wall the evil things, until he has destroyed you from off this good land that the Lord your God has given you, 16if you transgress the covenant of the Lord your God, which he commanded you, and go and serve other gods and bow down to them. Then the anger of the Lord will be kindled against you, and you shall perish quickly from off the good land that he has given to you.”

Judges 2:3

3So now I say, xI will not drive them out before you, but they shall become ythorns in your sides, and their gods shall be a snare to you.”

Judges 2:12

12 zAnd they abandoned the Lord, the God of their fathers, who had brought them out of the land of Egypt. aaThey went after other gods, from among the gods of the peoples who were around them, and abbowed down to them. acAnd they provoked the Lord to anger.
Copyright information for ESV