Then the LORD appeared at the tent in a pillar of cloud, and the cloud stood over the entrance to the tent.
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.
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?’
And I will certainly hide my face in that day because of all their wickedness in turning to other gods.
“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.
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.
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.”
So Moses wrote down this song that day and taught it to the Israelites.
The LORD gave this command to Joshua son of Nun: “Be strong and courageous, for you will bring the Israelites into the land I promised them on oath, and I myself will be with you.”
After Moses finished writing in a book the words of this law from beginning to end,
he gave this command to the Levites who carried the ark of the covenant of the LORD: