231Much later the LORD gave Israel security from their enemies around them. By that time Joshua was very old, 2so he called all Israel, the elders, leaders, judges, and officers of the people, and said, “I am very old now. 3You have seen everything that the LORD your God has done to all these nations because of you. The LORD your God has been fighting for you. 4I have assigned as the possession of your tribes the land of the nations that are still left, as well as of all the nations that I have already conquered, from the River Jordan in the east to the Mediterranean Sea in the west. 5The LORD your God will make them retreat from you, and he will drive them away as you advance. You shall have their land, as the LORD your God has promised you. 6So be careful to obey and do everything that is written in the book of the Law of Moses. Do not neglect any part of it, 7and then you will not associate with these peoples left among you or speak the names of their gods or use those names in taking vows or worship those gods or bow down to them. 8Instead, be faithful to the LORD, as you have been till now. 9The LORD has driven great and powerful nations out as you advanced and no one has ever been able to stand against you. 10
Any one of you can make a thousand men run away, because the LORD your God is fighting for you, just as he promised. 11Be careful, then, to love the LORD your God. 12If you are disloyal and join with the nations that are still left among you and intermarry with them, 13you may be sure that the LORD your God will no longer drive these nations out as you advance. Rather, they will be as dangerous for you as a trap or a pit and as painful as a whip on your back or thorns in your eyes. And this will last until none of you are left in this good land which the LORD your God has given you.
14“Now my time has come to die. Every one of you knows in his heart and soul that the LORD your God has given you all the good things that he promised. Every promise he made has been kept; not one has failed. 15But just as he kept every promise that he made to you, so he will carry out every threat. 16If you do not keep the covenant which the LORD your God commanded you to keep and if you serve and worship other gods, then in his anger he will punish you, and soon none of you will be left in this good land that he has given you.”