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. 27 For I have knowledge of your hard and uncontrolled hearts: even now, while I am still living, you will not be ruled by the Lord; how much less after my death? 28 Get together before me all those who are in authority in your tribes, and your overseers, so that I may say these things in their hearing, and make heaven and earth my witnesses against them. 29 For I am certain that after my death you will give yourselves up to sin, wandering from the way which I have given you; and evil will overtake you in the end, because you will do evil in the eyes of the Lord, moving him to wrath by the work of your hands.

The Song of Moses

30 Then in the hearing of all the meeting of Israel, Moses said the words of this song, to the end.

Matthew Henry's Commentary on Deuteronomy 31:23-30

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.