23 He commissioned Joshua the son of Nun, and said, “Be strong and of good courage; for you shall bring the children of Israel into the land which I swore to them: and I will be with you.”

The Law to Be Placed in the Ark

24 It happened, when Moses had made an end of writing the words of this law in a book, until they were finished, 25 that Moses commanded the Levites, who bore the ark of the covenant of Yahweh, saying, 26 “Take this book of the law, and put it by the side of the ark of the covenant of Yahweh your God, that it may be there for a witness against you. 27 For I know your rebellion, and your stiff neck: behold, while I am yet alive with you this day, you have been rebellious against Yahweh; and how much more after my death? 28 Assemble to me all the elders of your tribes, and your officers, that I may speak these words in their ears, and call heaven and earth to witness against them. 29 For I know that after my death you will utterly corrupt yourselves, and turn aside from the way which I have commanded you; and evil will happen to you in the latter days; because you will do that which is evil in the sight of Yahweh, to provoke him to anger through the work of your hands.”

The Song of Moses

30 Moses spoke in the ears of all the assembly of Israel the words of this song, until they were finished.

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.