Deuteronomy 31:14-22 - Joshua Commissioned To Lead Israel
14 Then Yahweh said to Moses, "Look, {you are about to die}; call Joshua and present yourselves in [the] tent of assembly, so that I may instruct him." So Moses and Joshua went and presented themselves in [the] tent of assembly. 15 And Yahweh appeared in the tent in a column of cloud, and the column of the cloud stood at the entrance of the tent.
16 And Yahweh said to Moses, "Look, you [are] about to lie [down] with your ancestors, and this people will arise and they will play the prostitute after {the foreign gods} of the land {to which they are going}. 17 And {my anger shall flare up against them} on that day, and I will forsake them, and I will hide my face from them, and they shall become as prey, and disasters and troubles shall find them, and they shall say on that day, '[Is it] not because our God is not in our midst [that] these disasters have found us?' 18 But I will certainly hide my face on that day, because [of] all of the evil that they did because they turned to other gods. 19 "And so then write this song for yourselves and teach it to the {Israelites}; put it in their mouth, so that this song may be for me as a witness against the {Israelites}. 20 For when I bring them into the land that I swore to their ancestors, a land flowing with milk and honey, {they will eat their fill}, and they will become fat, and [then] they will turn to other gods, and they will serve them, and they will spurn me, and they will break my covenant. 21 {And then} many disasters and troubles will come upon them, and this song will give evidence before them as a witness, because it will not be forgotten from [out of] the mouth of their descendants, for I know their inclination that they [are] having {today} before I have brought them into the land that I swore." 22 And Moses wrote this song on that day and taught it [to] the {Israelites}.