14 Then the Lord said to Moses, "The time has come for you to die. Call Joshua and present yourselves at the Tabernacle, so that I may commission him there." So Moses and Joshua went and presented themselves at the Tabernacle. 15 And the Lord appeared to them in a pillar of cloud that stood at the entrance to the sacred tent. 16 The Lord said to Moses, "You are about to die and join your ancestors. After you are gone, these people will begin to worship foreign gods, the gods of the land where they are going. They will abandon me and break my covenant that I have made with them. 17 Then my anger will blaze forth against them. I will abandon them, hiding my face from them, and they will be devoured. Terrible trouble will come down on them, and on that day they will say, 'These disasters have come down on us because God is no longer among us!' 18 At that time I will hide my face from them on account of all the evil they commit by worshiping other gods. 19 "So write down the words of this song, and teach it to the people of Israel. Help them learn it, so it may serve as a witness for me against them. 20 For I will bring them into the land I swore to give their ancestors-a land flowing with milk and honey. There they will become prosperous, eat all the food they want, and become fat. But they will begin to worship other gods; they will despise me and break my covenant. 21 And when great disasters come down on them, this song will stand as evidence against them, for it will never be forgotten by their descendants. I know the intentions of these people, even now before they have entered the land I swore to give them."

22 So that very day Moses wrote down the words of the song and taught it to the Israelites.

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.