1. Moses continued speaking to the people of Israel,
2. and said, "I am now a hundred and twenty years old and am no longer able to be your leader. And besides this, the LORD has told me that I will not cross the Jordan.
3. The LORD your God himself will go before you and destroy the nations living there, so that you can occupy their land; and Joshua will be your leader, as the LORD has said.
4. The LORD will destroy those people, just as he defeated Sihon and Og, kings of the Amorites, and destroyed their country.
5. The LORD will give you victory over them, and you are to treat them exactly as I have told you.
6. Be determined and confident. Do not be afraid of them. Your God, the LORD himself, will be with you. He will not fail you or abandon you."
7. Then Moses called Joshua and said to him in the presence of all the people of Israel, "Be determined and confident; you are the one who will lead these people to occupy the land that the LORD promised to their ancestors.
8. The LORD himself will lead you and be with you. He will not fail you or abandon you, so do not lose courage or be afraid."
9. So Moses wrote down God's Law and gave it to the levitical priests, who were in charge of the LORD's Covenant Box, and to the leaders of Israel.
10. He commanded them, "At the end of every seven years, when the year that debts are canceled comes around, read this aloud at the Festival of Shelters.
11. Read it to the people of Israel when they come to worship the LORD your God at the one place of worship.
12. Call together all the men, women, and children, and the foreigners who live in your towns, so that everyone may hear it and learn to honor the LORD your God and to obey his teachings faithfully.
13. In this way your descendants who have never heard the Law of the LORD your God will hear it. And so they will learn to obey him as long as they live in the land that you are about to occupy across the Jordan."
14. Then the LORD said to Moses, "You do not have much longer to live. Call Joshua and bring him to the Tent, so that I may give him his instructions." Moses and Joshua went to the Tent,
15. and the LORD appeared to them there in a pillar of cloud that stood by the door of the Tent.
16. The LORD said to Moses, "You will soon die, and after your death the people will become unfaithful to me and break the covenant that I made with them. They will abandon me and worship the pagan gods of the land they are about to enter.
17. When that happens, I will become angry with them; I will abandon them, and they will be destroyed. Many terrible disasters will come upon them, and then they will realize that these things are happening to them because I, their God, am no longer with them.
18. And I will refuse to help them then, because they have done evil and worshiped other gods.
19. "Now, write down this song. Teach it to the people of Israel, so that it will stand as evidence against them.
20. I will take them into this rich and fertile land, as I promised their ancestors. There they will have all the food they want, and they will live comfortably. But they will turn away and worship other gods. They will reject me and break my covenant,
21. and many terrible disasters will come on them. But this song will still be sung, and it will stand as evidence against them. Even now, before I take them into the land that I promised to give them, I know what they are thinking."
22. That same day Moses wrote down the song and taught it to the people of Israel.
23. Then the LORD spoke to Joshua son of Nun and told him, "Be confident and determined. You will lead the people of Israel into the land that I promised them, and I will be with you."
24. Moses wrote God's Law in a book, taking care not to leave out anything.
25. When he finished, he said to the levitical priests, who were in charge of the LORD's Covenant Box,
26. "Take this book of God's Law and place it beside the Covenant Box of the LORD your God, so that it will remain there as a witness against his people.
27. I know how stubborn and rebellious they are. They have rebelled against the LORD during my lifetime, and they will rebel even more after I am dead.
28. Assemble all your tribal leaders and officials before me, so that I can tell them these things; I will call heaven and earth to be my witnesses against them.
29. I know that after my death the people will become wicked and reject what I have taught them. And in time to come they will meet with disaster, because they will have made the LORD angry by doing what he has forbidden."
30. Then Moses recited the entire song while all the people of Israel listened.