14 The Lord said to Moses, "Now the day of your death is near. Call Joshua and present yourselves at the tent of meeting, where I will commission him." So Moses and Joshua came and presented themselves at the tent of meeting. 15 Then the Lord appeared at the tent in a pillar of cloud, and the cloud stood over the entrance to the tent. 16 And the Lord said to Moses: "You are going to rest with your ancestors, and these people will soon prostitute themselves to the foreign gods of the land they are entering. They will forsake me and break the covenant I made with them. 17 And in that day I will become angry with them and forsake them; I will hide my face from them, and they will be destroyed. Many disasters and calamities will come on them, and in that day they will ask, 'Have not these disasters come on us because our God is not with us?' 18 And I will certainly hide my face in that day because of all their wickedness in turning to other gods. 19 "Now write down this song and teach it to the Israelites and have them sing it, so that it may be a witness for me against them. 20 When I have brought them into the land flowing with milk and honey, the land I promised on oath to their ancestors, and when they eat their fill and thrive, they will turn to other gods and worship them, rejecting me and breaking my covenant. 21 And when many disasters and calamities come on them, this song will testify against them, because it will not be forgotten by their descendants. I know what they are disposed to do, even before I bring them into the land I promised them on oath."
22 So Moses wrote down this song that day and taught it to the Israelites.