DeuteronomyChapter 31

He said to them: "I am a hundred and twenty years old today. I can no longer go out and come in, and the LORD has told me, 'You shall not cross this Jordan.'
The LORD your God himself will cross over ahead of you. He will destroy these nations before you, and you will take possession of their land. Joshua will cross over ahead of you, as the LORD has said.
The LORD will do to them what he did to Sihon and Og, the kings of the Amorites, and to their land, when he destroyed them.
Be strong and courageous. Do not be afraid, do not be terrified before them, for the LORD your God goes with you; he will never fail you or forsake you."
Then Moses summoned Joshua and said to him in the sight of all Israel, "Be strong and courageous, for you will go with this people into the land the LORD swore to their fathers to give them, and you will give it to them as their inheritance.
The LORD himself goes before you; he will be with you. He will never fail you or forsake you. Do not be afraid; do not be dismayed."
So Moses wrote down this law and gave it to the priests, the sons of Levi, who carried the ark of the covenant of the LORD, and to all the elders of Israel.
Moses commanded them: "At the end of every seven years, in the year appointed for release from debts, at the Festival of Booths,
when all Israel comes to appear before the LORD your God at the place he will choose, you shall read this law aloud in the hearing of all Israel.
Assemble the people—the men, the women, the children, and the foreigners residing in your towns—so that they may listen and learn to fear the LORD your God and be careful to follow all the words of this law.
Then their children, who do not know it, will hear it and learn to fear the LORD your God as long as you live in the land you are crossing the Jordan to possess."
The LORD said to Moses, "The day of your death is near. Summon Joshua and present yourselves at the tent of meeting, where I will commission him." So Moses and Joshua went and presented themselves at the tent of meeting.
Then the LORD appeared at the tent in a pillar of cloud, and the pillar of cloud stood over the entrance of the tent.
And the LORD said to Moses: "You are about to lie down with your fathers, and this people will rise up and prostitute themselves to the foreign gods of the land they are entering. They will forsake me and break the covenant I made with them.
On that day my anger will burn against them. I will forsake them and hide my face from them, and they will be devoured. Many disasters and calamities will come upon them, and on that day they will say, 'Have not these disasters come upon us because our God is no longer among us?'
And on that day I will surely hide my face because of all the evil they have done in turning to other gods.
Now write down this song for yourselves and teach it to the Israelites; put it in their mouths, so that it may be a witness for me against them.
When I bring them into the land I promised on oath to their fathers, a land flowing with milk and honey, and when they have eaten their fill and grown fat, they will turn to other gods and serve them; they will despise me and break my covenant.
And when many disasters and calamities come upon them, this song will testify against them, for it will not be lost from the lips of their descendants. For I know what they are inclined to do even now, before I bring them into the land I promised them on oath.
The LORD commissioned Joshua son of Nun and said, "Be strong and courageous, for you will bring the Israelites into the land I promised them on oath, and I myself will be with you."
When Moses had finished writing the words of this law in a book, from beginning to end,
"Take this Book of the Law and place it beside the ark of the covenant of the LORD your God. There it will remain as a witness against you.
For I know how rebellious and stiff-necked you are. Even now, while I am still alive and with you, you have rebelled against the LORD; how much more after I die!
Assemble before me all the elders of your tribes and all your officials, so that I can speak these words in their hearing and call heaven and earth to testify against them.
For I know that after my death you are sure to become utterly corrupt and to turn from the way I have commanded you. In days to come disaster will overtake you, because you will do evil in the sight of the LORD and provoke him to anger by what your hands have made."
Then Moses recited the words of this song in the hearing of the whole assembly of Israel, from beginning to end: