Deuteronomy 31:22-30

22 Moses therefore wrote this song the same day and taught it to the sons of Israel.
23 And he gave Joshua, the son of Nun, a charge and said, Be strong and of a good courage for thou shalt bring the sons of Israel into the land which I swore unto them, and I will be with thee.
24 And it came to pass when Moses had finished writing the words of this law in the book until they were finished,
25 that Moses commanded the Levites, who bore the ark of the covenant of the LORD, saying,
26 Take this book of the law and put it in the side of the ark of the covenant of the LORD your God that it may be there for a witness against thee.
27 For I know thy rebellion and thy stiff neck; behold, while I am yet alive with you today, ye are rebels against the LORD, and how much more after my death?
28 Gather unto me all the elders of your tribes and your officers, and I shall speak these words in their ears and call the heavens and the earth as witnesses against them.
29 For I know that after my death ye will utterly corrupt yourselves and turn aside from the way which I have commanded you; and evil will befall you in the latter days because ye will have done evil in the sight of the LORD, to provoke him to anger through the work of your hands.
30 Then Moses spoke in the ears of all the congregation of Israel the words of this song until they were ended.

Deuteronomy 31:22-30 Meaning and Commentary

INTRODUCTION TO DEUTERONOMY 31

Moses being old, and knowing he should quickly die, and must not go over Jordan with the people of Israel, acquaints them with it, and encourages them and Joshua to go over notwithstanding, and not be afraid of their enemies, since the Lord would go with them, and deliver them into their hands, De 31:1-8; and having written the law, he delivered it to the priests, and ordered that it should be read at the end of every seven years before all the people, that they and theirs might learn it, and fear the Lord, De 31:9-13; and whereas the death of Moses was very near, and the Lord foreseeing the people would quickly fall into idolatry, which would bring great calamities upon them, he directed Moses to write a song, which should be a witness for him, and against them, in ages to come; which Moses accordingly did, De 31:14-22; and Moses having given a charge to Joshua, and finished the writing of the law in a book, gave it to the Levites to put it in the side of the ark, De 31:23-27; and then ordered the chief of the tribes to be gathered together, that he might deliver the song, which by the direction and under the inspiration of God he had written, De 31:28-30; which song is recorded in De 32:1-43.

The Jubilee Bible (from the Scriptures of the Reformation), edited by Russell M. Stendal, Copyright © 2000, 2001, 2010