23 Many days after Jehovah had given Israel rest+ from all its surrounding enemies, when Joshua was old and advanced in years,+ 2 Joshua summoned all Israel,+ its elders, its heads, its judges, and its officers,+ and he said to them: “I have grown old; I am advanced in years. 3 And you have seen for yourselves all that Jehovah your God did to all these nations in your behalf because Jehovah your God was the one who was fighting for you.+ 4 See, I assigned to you by lot*+ the land of the nations that remain as an inheritance for your tribes,+ as well as that of all the nations that I destroyed,+ from the Jordan to the Great Sea* on the west.* 5 And Jehovah your God was the one who kept thrusting them away from before you,+ and he drove them out* for you, and you took possession of their land, just as Jehovah your God promised you.+
6 “Now you must be very courageous to observe and carry out all that is written in the book of the Law+ of Moses by never deviating from it to the right or to the left,+ 7 by never mingling with these nations+ that remain with you. You must not even mention the names of their gods+ nor swear by them, and you must never serve them nor bow down to them.+ 8 But you must stick to Jehovah your God,+ just as you have done down to this day. 9 Jehovah will drive away great and mighty nations from before you,+ for not a man has been able to stand before you to this day.+ 10 Just one man of you will chase a thousand,+ because Jehovah your God is fighting for you,+ just as he promised you.+ 11 So be on guard constantly*+ by loving Jehovah your God.+
12 “But if you should turn back at all and stick to what is left of these nations that remain+ with you and you form marriage alliances*+ with them and associate with them and they with you, 13 you should know for sure that Jehovah your God will not continue to drive out* these nations for you.+ They will become a trap and a snare and a scourge on your flanks+ and thorns in your eyes until you have perished from this good land that Jehovah your God has given you.
14 “Now look! I am about to die,* and you well know with all your heart and with all your soul* that not one word out of all the good promises that Jehovah your God has spoken to you has failed. They have all come true for you. Not one word of them has failed.+ 15 But just as all the good promises that Jehovah your God has spoken to you have come upon you,+ so Jehovah will bring upon you all the calamity that he promised* and will annihilate you from this good land that Jehovah your God has given you.+ 16 If you violate the covenant of Jehovah your God that he commanded you to keep and if you go and serve other gods and bow down to them, then Jehovah’s anger will blaze against you+ and you will quickly perish from the good land that he has given you.”+