Numbers 33:55

But if you are slow in driving out the people of the land, then those of them who are still there will be like pin-points in your eyes and like thorns in your sides, troubling you in the land where you are living.

Judges 2:3

And so I have said, I will not send them out from before you; but they will be a danger to you, and their gods will be a cause of falling to you.

Exodus 23:33

Let them not go on living in your land, or they will make you do evil against me: for if you give worship to their gods, it will certainly be a cause of sin to you.

Deuteronomy 7:4

For through them your sons will be turned from me to the worship of other gods: and the Lord will be moved to wrath against you and send destruction on you quickly.

Deuteronomy 7:16

And you are to send destruction on all the peoples which the Lord your God gives into your hands; have no pity on them, and do not give worship to their gods; for that will be a cause of sin to you.

Joshua 23:12-13

For if you go back, joining yourselves to the rest of these nations who are still among you, getting married to them and living with them and they with you:

Judges 1:21-36

And the children of Judah did not make the Jebusites who were living in Jerusalem go out; the Jebusites are still living with the children of Benjamin in Jerusalem.

Psalm 106:34-36

They did not put an end to the peoples, as the Lord had said;

Ezekiel 28:24

And there will no longer be a plant with sharp points wounding the children of Israel, or a thorn troubling them among any who are round about them, who put shame on them; and they will be certain that I am the Lord.

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
Let them not go on living in your land, or they will make you do evil against me: for if you give worship to their gods, it will certainly be a cause of sin to you.
Deuteronomy 7:4
For through them your sons will be turned from me to the worship of other gods: and the Lord will be moved to wrath against you and send destruction on you quickly.
Joshua 23:12
For if you go back, joining yourselves to the rest of these nations who are still among you, getting married to them and living with them and they with you:
Judges 1:21
And the children of Judah did not make the Jebusites who were living in Jerusalem go out; the Jebusites are still living with the children of Benjamin in Jerusalem.
Judges 2:3
And so I have said, I will not send them out from before you; but they will be a danger to you, and their gods will be a cause of falling to you.
Psalm 106:34
They did not put an end to the peoples, as the Lord had said;
Ezekiel 28:24
And there will no longer be a plant with sharp points wounding the children of Israel, or a thorn troubling them among any who are round about them, who put shame on them; and they will be certain that I am the Lord.

General references

Joshua 17:12
But the children of Manasseh were not able to make the people of those towns go out; but the Canaanites would go on living in that land.

Basic English, produced by Mr C. K. Ogden of the Orthological Institute - public domain