Joshua 23:13

even now, know this: that the Lord your God will not wipe them away before your face. Instead, they shall be a pit and a snare to you, and a stumbling block at your side, and stakes in your eyes, until he takes you away and scatters you from this excellent land, which he has delivered to you

Other versions

King James Version

Know for a certainty that the LORD your God will no more drive out any of these nations from before you; but they shall be snares and traps unto you, and scourges in your sides, and thorns in your eyes, until ye perish from off this good land which the LORD your God hath given you.

English Standard Version

know for certain that the LORD your God will no longer drive out these nations before you, but 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.

New International Version

then you may be sure that the LORD your God will no longer drive out these nations before you. Instead, they will become snares and traps for you, whips on your backs and thorns in your eyes, until you perish from this good land, which the LORD your God has given you.