14 And Jehovah saith unto Moses, 'Lo, thy days have drawn near to die; call Joshua, and station yourselves in the tent of meeting, and I charge him;' and Moses goeth—Joshua also—and they station themselves in the tent of meeting, 15 and Jehovah is seen in the tent, in a pillar of a cloud; and the pillar of the cloud standeth at the opening of the tent. 16 And Jehovah saith unto Moses, 'Lo, thou art lying down with thy fathers, and this people hath risen, and gone a-whoring after the gods of the stranger of the land into the midst of which it hath entered, and forsaken Me, and broken My covenant which I made with it; 17 and Mine anger hath burned against it in that day, and I have forsaken them, and hidden My face from them, and it hath been for consumption, and many evils and distresses have found it, and it hath said in that day, Is it not because that my God is not in my midst—these evils have found me? 18 and I certainly hide My face in that day for all the evil which it hath done, for it hath turned unto other gods. 19 'And now, write for you this song, and teach it the sons of Israel; put it in their mouths, so that this song is to Me for a witness against the sons of Israel, 20 and I bring them in unto the ground which I have sworn to their fathers—flowing with milk and honey, and they have eaten, and been satisfied, and been fat, and have turned unto other gods, and they have served them, and despised Me, and broken My covenant. 21 'And it hath been, when many evils and distresses do meet it, that this song hath testified to its face for a witness; for it is not forgotten out of the mouth of its seed, for I have known its imagining which it is doing to-day, before I bring them in unto the land of which I have sworn.'

22 And Moses writeth this song on that day, and doth teach it the sons 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.