23 And he gave Joshua the son of Nun a charge, and said, Be strong and of good courage; for thou shalt bring the children of Israel into the land which I sware unto them: and I will be with thee.

The Law to Be Placed in the Ark

24 And it came to pass, 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, that bare the ark of the covenant of Jehovah, saying, 26 Take this book of the law, and put it by the side of the ark of the covenant of Jehovah your God, that it may be there for a witness against thee. 27 For I know thy rebellion, and thy stiff neck: behold, while I am yet alive with you this day, ye have been rebellious against Jehovah; and how much more after my death? 28 Assemble unto 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 ye will utterly corrupt yourselves, and turn aside from the way which I have commanded you; and evil will befall you in the latter days; because ye will do that which is evil in the sight of Jehovah, to provoke him to anger through the work of your hands.

The Song of Moses

30 And Moses spake 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.