Numbers 33:55

But if ye will not drive out the inhabitants of the land from before you; then it shall come to pass, that those which ye let remain of them shall be prickles in your eyes, and thorns in your sides, and shall harass you in the land in which ye dwell.

Judges 2:3

Wherefore I also said, I will not drive them out from before you; but they shall be as thorns in your sides, and their gods shall be a snare to you.

Exodus 23:33

They shall not dwell in thy land, lest they make thee to sin against me: for if thou shalt serve their gods, it will surely be a snare to thee.

Deuteronomy 7:4

For they will turn away thy son from following me, that they may serve other gods: so will the anger of the LORD be kindled against you, and destroy thee suddenly.

Deuteronomy 7:16

And thou shalt consume all the people which the LORD thy God shall deliver to thee; thy eye shall have no pity upon them: neither shalt thou serve their gods; for that will be a snare to thee.

Joshua 23:12-13

Else if ye do in any wise go back, and cleave to the remnant of these nations, even these that remain among you, and shall make marriages with them, and associate with them, and they with you:

Judges 1:21-36

And the children of Benjamin did not drive out the Jebusites that inhabited Jerusalem; but the Jebusites dwell with the children of Benjamin in Jerusalem to this day.

Psalm 106:34-36

They did not destroy the nations, concerning whom the LORD commanded them:

Ezekiel 28:24

And there shall be no more a pricking brier to the house of Israel, nor any grieving thorn of all that are around them, that despised them; and they shall know that I am the Lord GOD.

Treasury of Scripture Knowledge

Summary

But if ye will not drive out the inhabitants of the land from before you; then it shall come to pass, that those which ye let remain of them shall be pricks in your eyes, and thorns in your sides, and shall vex you in the land wherein ye dwell.

General references

Bible References

Shall be pricks

Exodus 23:33
They shall not dwell in thy land, lest they make thee to sin against me: for if thou shalt serve their gods, it will surely be a snare to thee.
Deuteronomy 7:4
For they will turn away thy son from following me, that they may serve other gods: so will the anger of the LORD be kindled against you, and destroy thee suddenly.
Joshua 23:12
Else if ye do in any wise go back, and cleave to the remnant of these nations, even these that remain among you, and shall make marriages with them, and associate with them, and they with you:
Judges 1:21
And the children of Benjamin did not drive out the Jebusites that inhabited Jerusalem; but the Jebusites dwell with the children of Benjamin in Jerusalem to this day.
Judges 2:3
Wherefore I also said, I will not drive them out from before you; but they shall be as thorns in your sides, and their gods shall be a snare to you.
Psalm 106:34
They did not destroy the nations, concerning whom the LORD commanded them:
Ezekiel 28:24
And there shall be no more a pricking brier to the house of Israel, nor any grieving thorn of all that are around them, that despised them; and they shall know that I am the Lord GOD.

General references

Joshua 17:12
Yet the children of Manasseh could not expel the inhabitants of those cities; but the Canaanites would dwell in that land.