9 Then 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. 10 Moses commanded them: "Every seventh year, in the scheduled year of remission, during the festival of booths, 11 when all Israel comes to appear before the Lord your God at the place that he will choose, you shall read this law before all Israel in their hearing. 12 Assemble the people-men, women, and children, as well as the aliens residing in your towns-so that they may hear and learn to fear the Lord your God and to observe diligently all the words of this law, 13 and so that their children, who have not known it, may hear and learn to fear the Lord your God, as long as you live in the land that you are crossing over the Jordan to possess."

14 The Lord said to Moses, "Your time to die is near; call Joshua and present yourselves in the tent of meeting, so that I may commission him." So Moses and Joshua went and presented themselves in the tent of meeting, 15 and the Lord appeared at the tent in a pillar of cloud; the pillar of cloud stood at the entrance to the tent. 16 The Lord said to Moses, "Soon you will lie down with your ancestors. Then this people will begin to prostitute themselves to the foreign gods in their midst, the gods of the land into which they are going; they will forsake me, breaking my covenant that I have made with them. 17 My anger will be kindled against them in that day. I will forsake them and hide my face from them; they will become easy prey, and many terrible troubles will come upon them. In that day they will say, "Have not these troubles come upon us because our God is not in our midst?' 18 On that day I will surely hide my face on account of all the evil they have done by turning to other gods. 19 Now therefore write this song, and teach it to the Israelites; put it in their mouths, in order that this song may be a witness for me against the Israelites. 20 For when I have brought them into the land flowing with milk and honey, which I promised on oath to their ancestors, and they have eaten their fill and grown fat, they will turn to other gods and serve them, despising me and breaking my covenant. 21 And when many terrible troubles come upon them, this song will confront them as a witness, because it will not be lost from the mouths of their descendants. For I know what they are inclined to do even now, before I have brought them into the land that I promised them on oath."

22 That very day Moses wrote this song and taught it to the Israelites. 23 Then the Lord commissioned Joshua son of Nun and said, "Be strong and bold, for you shall bring the Israelites into the land that I promised them; I will be with you."

The Law to Be Placed in the Ark

24 When Moses had finished writing down in a book the words of this law to the very end, 25 Moses commanded the Levites who carried the ark of the covenant of the Lord, saying, 26 "Take this book of the law and put it beside the ark of the covenant of the Lord your God; let it remain there as a witness against you.

Matthew Henry's Commentary on Deuteronomy 31:9-26

Commentary on Deuteronomy 31:9-13

(Read Deuteronomy 31:9-13)

Though we read the word in private, we must not think it needless to hear it read in public. This solemn reading of the law must be done in the year of release. The year of release was typical of gospel grace, which is called the acceptable year of the Lord; for our pardon and liberty by Christ, engage us to keep his commandments. It must be read to all Israel, men, women, children, and to the strangers. It is the will of God that all people should acquaint themselves with his word. It is a rule to all, therefore should be read to all. Whoever has read of the pains taken by many persons to get scraps of the Scriptures, when a whole copy could not be obtained, or safely possessed, will see how thankful we should be for the thousands of copies amongst us. They will also understand the very different situation in which the Israelites were placed for many ages. But the heart of man is so careless, that all will be found too little, to keep up a knowledge of the truths, precepts, and worship of God.

Commentary on Deuteronomy 31:14-22

(Read Deuteronomy 31:14-22)

Moses and Joshua attended the Divine Majesty at the door of the tabernacle. Moses is told again that he must shortly die; even those who are most ready and willing to die, need to be often reminded of its coming. The Lord tells Moses, that, after his death, the covenant he had taken so much pains to make between Israel and their God, would certainly be broken. Israel would forsake Him; then God would forsake Israel. Justly does he cast those off who so unjustly cast him off. Moses is directed to deliver them a song, which should remain a standing testimony for God, as faithful to them in giving them warning, and against them, as persons false to themselves in not taking the warning. The word of God is a discerner of the thoughts and intents of men's hearts, and meets them by reproofs and correction. Ministers who preach the word, know not the imaginations of men; but God, whose word it is, knows perfectly.

Commentary on Deuteronomy 31:23-30

(Read Deuteronomy 31:23-30)

The solemn delivery of the book of the law to the Levites, to be deposited in, or rather by the side, of the ark, is again related. The song which follows in the next chapter is delivered to Moses, and by him to the people. He wrote it first, as the Holy Spirit taught him; and then spake it in the hearing of all the people. Moses tells them plainly, I know that after my death ye will utterly corrupt yourselves. Many a sad thought, no doubt, it occasioned to this good man; but his comfort was, that he had done his duty, and that God would be glorified in their dispersion, if not in their settlement, for the foundation of God stands sure.