23 Then God commanded Joshua son of Nun saying, "Be strong. Take courage. You will lead the People of Israel into the land I promised to give them. And I'll be right there with you."

The Law to Be Placed in the Ark

24 After Moses had finished writing down the words of this Revelation in a book, right down to the last word, 25 he ordered the Levites who were responsible for carrying the Chest of the Covenant of God, saying, 26 "Take this Book of Revelation and place it alongside the Chest of the Covenant of God, your God. Keep it there as a witness. 27 "I know what rebels you are, how stubborn and willful you can be. Even today, while I'm still alive and present with you, you're rebellious against God. How much worse when I've died! 28 So gather the leaders of the tribes and the officials here. I have something I need to say directly to them with Heaven and Earth as witnesses. 29 I know that after I die you're going to make a mess of things, abandoning the way I commanded, inviting all kinds of evil consequences in the days ahead. You're determined to do evil in defiance of God - I know you are - deliberately provoking his anger by what you do."

The Song of Moses

30 So with everyone in Israel gathered and listening, Moses taught them the words of this song, from start to finish.

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.