14 God spoke to Moses: "You are about to die. So call Joshua. Meet me in the Tent of Meeting so that I can commission him." 15 God appeared in the Tent in a Pillar of Cloud. The Cloud was near the entrance of the Tent of Meeting. 16 God spoke to Moses: "You're about to die and be buried with your ancestors. You'll no sooner be in the grave than this people will be up and whoring after the foreign gods of this country that they are entering. They will abandon me and violate my Covenant that I've made with them. 17 I'll get angry, oh so angry! I'll walk off and leave them on their own, won't so much as look back at them. Then many calamities and disasters will devastate them because they are defenseless. They'll say, 'Isn't it because our God wasn't here that all this evil has come upon us?' 18 But I'll stay out of their lives, keep looking the other way because of all their evil: they took up with other gods! 19 "But for right now, copy down this song and teach the People of Israel to sing it by heart. They'll have it then as my witness against them. 20 When I bring them into the land that I promised to their ancestors, a land flowing with milk and honey, and they eat and become full and get fat and then begin fooling around with other gods and worshiping them, 21 and then things start falling apart, many terrible things happening, this song will be there with them as a witness to who they are and what went wrong. Their children won't forget this song; they'll be singing it. Don't think I don't know what they are already scheming to do, and they're not even in the land yet, this land I promised them."

22 So Moses wrote down this song that very day and taught it to the People of Israel.

Matthew Henry's Commentary on Deuteronomy 31:14-22

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.