Deuteronomy 31:14-31:19
The Lord said to Moses: The time is drawing near for you to die. Call Joshua and present yourselves in the Tent of Meeting, that I may instruct him. Moses and Joshua went and presented themselves in the Tent of Meeting. The Lord appeared in the Tent, in a pillar of cloud, the pillar of cloud having come to rest at the entrance of the tent.
The Lord said to Moses: You are soon to lie with your fathers. This people will thereupon go astray after the alien gods in their midst, in the land that they are about to enter; they will forsake Me and break My covenant that I made with them. Then My anger will flare up against them, and I will abandon them and hide My countenance from them. They shall be ready prey; and many evils and troubles shall befall them. And they shall say on that day, "Surely it is because our God is not in our midst that these evils have befallen us." Yet I will keep My countenance hidden on that day, because of all the evil they have done in turning to other gods. Therefore, write down this poem and teach it to the people of Israel; put it in their mouths, in order that this poem may be My witness against the people of Israel.