Joshua 23:7-14 New King James Version (NKJV)
7 and lest you go[a] among these nations, these who remain among you. You shall not make mention of the name of their gods, nor cause anyone to swear by them; you shall not serve them nor bow down to them, 8 but you shall hold fast to the Lord your God, as you have done to this day. 9 For the Lord has [b]driven out from before you great and strong nations; but as for you, no one has been able to stand against you to this day. 10 One man of you shall chase a thousand, for the Lord your God is He who fights for you, as He promised you. 11 Therefore take careful heed to yourselves, that you love the Lord your God. 12 Or else, if indeed you do go back, and cling to the remnant of these nations—these that remain among you—and make marriages with them, and go in to them and they to you, 13 know for certain that the Lord your God will no longer drive out these nations from before you. But they shall be snares and traps to you, and scourges on your sides and thorns in your eyes, until you perish from this good land which the Lord your God has given you.
14 “Behold, this day I[c] am going the way of all the earth. And you know in all your hearts and in all your souls that not one thing has failed of all the good things which the Lord your God spoke concerning you. All have come to pass for you; not one word of them has failed.