A long time after the Lord had given Israel rest from all the enemies around them, Joshua was old, getting on in years.
So Joshua summoned all Israel, including its elders, leaders, judges, and officers, and said to them, "I am old, getting on in years,
and you have seen for yourselves everything the Lord your God did to all these nations on your account, because it was the Lord your God who was fighting for you.
See, I have allotted these remaining nations to you as an inheritance for your tribes, including all the nations I have destroyed, from the Jordan westward to the Mediterranean Sea
The Lord your God will force them back on your account and drive them out before you, so that you can take possession of their land, as the Lord your God promised you.
"Be very strong, and continue obeying all that is written in the book of the law of Moses, so that you do not turn from it to the right or left
and so that you do not associate with these nations remaining among you. Do not call on the names of their gods or make an oath to them; do not worship them or bow down to them.
Instead, remain faithful to the Lord your God, as you have done to this day.
"The Lord has driven out great and powerful nations before you, and no one has been able to stand against you to this day.
One of you routed a thousand, because the Lord your God was fighting for you, as He promised.
So be very diligent to love the Lord your God for your own well-being.
For if you turn away and cling to the rest of these nations remaining among you, and if you intermarry or associate with them and they with you,
know for certain that the Lord your God will not continue to drive these nations out before you. They will become a snare and a trap for you, a scourge for your sides and thorns in your eyes, until you disappear from this good land the Lord your God has given you.
"I am now going the way of all the earth, and you know with all your heart and all your soul that none of the good promises the Lord your God made to you has failed. Everything was fulfilled for you; not one promise has failed
Since every good thing the Lord your God promised you has come about, so He will bring on you every bad thing until He has annihilated you from this good land the Lord your God has given you.
If you break the covenant of the Lord your God, which He commanded you, and go and worship other gods, and bow down to them, the Lord's anger will burn against you, and you will quickly disappear from this good land He has given you."