Deuteronomy 31:14-23 Revised Standard Version (RSV)
Moses and Joshua Receive God’s Charge
14 And the Lord said to Moses, “Behold, the days approach when you must die; call Joshua, and present yourselves in the tent of meeting, that I may commission him.” And Moses and Joshua went and presented themselves in the tent of meeting. 15 And the Lord appeared in the tent in a pillar of cloud; and the pillar of cloud stood by the door of the tent.
16 And the Lord said to Moses, “Behold, you are about to sleep with your fathers; then this people will rise and play the harlot after the strange gods of the land, where they go to be among them, and they will forsake me and break my covenant which I have made with them. 17 Then my anger will be kindled against them in that day, and I will forsake them and hide my face from them, and they will be devoured; and many evils and troubles will come upon them, so that they will say in that day, ‘Have not these evils come upon us because our God is not among us?’ 18 And I will surely hide my face in that day on account of all the evil which they have done, because they have turned to other gods. 19 Now therefore write this song, and teach it to the people of Israel; put it in their mouths, that this song may be a witness for me against the people of Israel. 20 For when I have brought them into the land flowing with milk and honey, which I swore to give to their fathers, and they have eaten and are full and grown fat, they will turn to other gods and serve them, and despise me and break my covenant. 21 And when many evils and troubles have come upon them, this song shall confront them as a witness (for it will live unforgotten in the mouths of their descendants); for I know the purposes which they are already forming, before I have brought them into the land that I swore to give.” 22 So Moses wrote this song the same day, and taught it to the people of Israel.
23 And the Lord commissioned Joshua the son of Nun and said, “Be strong and of good courage; for you shall bring the children of Israel into the land which I swore to give them: I will be with you.”