9 Then Moses put all this law in writing, and gave it to the priests, the sons of Levi, who take up the ark of the Lord's agreement, and to all the responsible men of Israel. 10 And Moses said to them, At the end of every seven years, at the time fixed for the ending of debts, at the feast of tents, 11 When all Israel has come before the Lord your God in the place named by him, let a reading be given of this law in the hearing of all Israel. 12 Make all the people come together, men and women and children, and anyone from another country who is with you, so that hearing they may become wise in the fear of the Lord your God, and take care to do all the words of this law; 13 And so that your children, to whom it is new, may give ear and be trained in the fear of the Lord your God, while you are living in the land which you are going over Jordan to take for your heritage.

14 At that time the Lord said to Moses, The day of your death is near: send for Joshua, and come to the Tent of meeting so that I may give him his orders. So Moses and Joshua went to the Tent of meeting. 15 And the Lord was seen in the Tent in a pillar of cloud resting by the door of the Tent. 16 And the Lord said to Moses, Now you are going to rest with your fathers; and this people will be false to me, uniting themselves to the strange gods of the land where they are going; they will be turned away from me and will not keep the agreement I have made with them. 17 In that day my wrath will be moved against them, and I will be turned away from them, veiling my face from them, and destruction will overtake them, and unnumbered evils and troubles will come on them; so that in that day they will say, Have not these evils come on us because our God is not with us? 18 Truly, my face will be turned away from them in that day, because of all the evil they have done in going after other gods. 19 Make then this song for yourselves, teaching it to the children of Israel: put it in their mouths, so that this song may be a witness for me against the children of Israel. 20 For when I have taken them into the land named in my oath to their fathers, a land flowing with milk and honey, and they have made themselves full of food and are fat, then they will be turned to other gods and will give them worship, no longer honouring me or keeping my agreement. 21 Then when evils and troubles without number have overtaken them, this song will be a witness to them, for the words of it will be clear in the memories of their children: for I see the thoughts which are moving in their hearts even now, before I have taken them into the land of my oath.

22 So that same day Moses made this song, teaching it to the children of Israel. 23 Then he gave orders to Joshua, the son of Nun, saying to him, Be strong and take heart: for you are to go at the head of the children of Israel into the land which I made an oath to give them; and I will be with you.

The Law to Be Placed in the Ark

24 Now after writing all the words of this law in a book till the record of them was complete, 25 Moses said to the Levites who were responsible for taking up the ark of the Lord's agreement, 26 Take this book of the law and put it by the ark of the Lord's agreement, so that it may be 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.