Deuteronomy 31:14-23
The Commissioning of Joshua
31:14 Then the Lord said to Moses, “The day of your death is near. Summon Joshua and present yourselves in the tent of meeting so that I can commission him.” So Moses and Joshua presented themselves in the tent of meeting.
31:15 The Lord appeared in the tent in a pillar of cloud that stood above the door of the tent.
31:16 Then the Lord said to Moses, “You are about to die, and then these people will begin to prostitute themselves with the foreign gods of the land into which they are going. They will reject me and break my covenant that I have made with them.
31:17 At that time my anger will erupt against them and I will abandon them and hide my face from them until they are devoured. Many disasters and distresses will overcome them so that they will say at that time, ‘Have not these disasters overcome us because our God is not among us?’
31:18 But I will certainly hide myself at that time because of all the wickedness they will have done by turning to other gods.
31:19 Now write down for yourselves the following song and teach it to the Israelites. Put it into their very mouths so that this song may serve as my witness against the Israelites!
31:20 For after I have brought them to the land I promised to their ancestors – one flowing with milk and honey – and they eat their fill and become fat, then they will turn to other gods and worship them; they will reject me and break my covenant.
31:21 Then when many disasters and distresses overcome them this song will testify against them, for their descendants will not forget it. I know the intentions they have in mind today, even before I bring them to the land I have promised.”
31:22 So on that day Moses wrote down this song and taught it to the Israelites,
31:23 and the Lord commissioned Joshua son of Nun, “Be strong and courageous, for you will take the Israelites to the land I have promised them, and I will be with you.”