1 Then Moses went and spoke these words to all Israel. 2 He said to them, "Today I am a hundred and twenty years old. I am no longer able to get about, and the Lord has said to me, 'You will not cross the Jordan.' 3 As for the Lord your God, he is about to cross over before you; he will destroy these nations before you and dispossess them. As for Joshua, he is about to cross before you just as the Lord has said. 4 The Lord will do to them just what he did to Sihon and Og, the Amorite kings, and to their land, which he destroyed. 5 The Lord will deliver them over to you and you will do to them according to the whole commandment I have given you. 6 Be strong and courageous! Do not fear or tremble before them, for the Lord your God is the one who is going with you. He will not fail you or abandon you!"
7 Then Moses called out to Joshua in the presence of all Israel, "Be strong and courageous, for you will accompany these people to the land that the Lord promised to give their ancestors, and you will enable them to inherit it. 8 The Lord is indeed going before you -- he will be with you; he will not fail you or abandon you. Do not be afraid or discouraged!"
9 Then Moses wrote down this law and gave it to the Levitical priests, who carry the ark of the Lord's covenant, and to all Israel's elders. 10 He commanded them: "At the end of seven years, at the appointed time of the cancellation of debts, at the Feast of Temporary Shelters, 11 when all Israel comes to appear before the Lord your God in the place he chooses, you must read this law before them within their hearing. 12 Gather the people -- men, women, and children, as well as the resident foreigners in your villages -- so they may hear and thus learn about and fear the Lord your God and carefully obey all the words of this law. 13 Then their children, who have not known this law, will also hear about and learn to fear the Lord your God for as long as you live in the land you are crossing the Jordan to possess."
14 Then the Lord said to Moses, "The day of your death is near. Summon Joshua and present yourselves in the tent of meeting so that I can commission him." So Moses and Joshua presented themselves in the tent of meeting. 15 The Lord appeared in the tent in a pillar of cloud that stood above the door of the tent.
16 Then the Lord said to Moses, "You are about to die, and then these people will begin to prostitute themselves with the foreign gods of the land into which they are going. They will reject me and break my covenant that I have made with them. 17 At that time my anger will erupt against them and I will abandon them and hide my face from them until they are devoured. Many disasters and distresses will overcome them so that they will say at that time, 'Have not these disasters overcome us because our God is not among us?' 18 But I will certainly hide myself at that time because of all the wickedness they will have done by turning to other gods. 19 Now write down for yourselves the following song and teach it to the Israelites. Put it into their very mouths so that this song may serve as my witness against the Israelites! 20 For after I have brought them to the land I promised to their ancestors -- one flowing with milk and honey -- and they eat their fill and become fat, then they will turn to other gods and worship them; they will reject me and break my covenant. 21 Then when many disasters and distresses overcome them this song will testify against them, for their descendants will not forget it. I know the intentions they have in mind today, even before I bring them to the land I have promised." 22 So on that day Moses wrote down this song and taught it to the Israelites,
23 and the Lord commissioned Joshua son of Nun, "Be strong and courageous, for you will take the Israelites to the land I have promised them, and I will be with you."
24 When Moses finished writing on a scroll the words of this law in their entirety, 25 he commanded the Levites who carried the ark of the Lord's covenant, 26 "Take this scroll of the law and place it beside the ark of the covenant of the Lord your God. It will remain there as a witness against you, 27 for I know about your rebellion and stubbornness. Indeed, even while I have been living among you to this very day, you have rebelled against the Lord; you will be even more rebellious after my death! 28 Gather to me all your tribal elders and officials so I can speak to them directly about these things and call the heavens and the earth to witness against them. 29 For I know that after I die you will totally corrupt yourselves and turn away from the path I have commanded you to walk. Disaster will confront you in the days to come because you will act wickedly before the Lord, inciting him to anger because of your actions." 30 Then Moses recited the words of this song from start to finish in the hearing of the whole assembly of Israel.