Deuteronomy 31:14-22 - Joshua Commissioned To Lead Israel

14 And the LORD said unto Moses, "Behold, thy days are come, that thou must die. Call Joshua and come and stand in the tabernacle of witness, that I may give him a charge." And Moses and Joshua went and stood in the tabernacle of witness. 15 And the LORD appeared in the tabernacle in a cloudy pillar, and the same cloudy pillar stood in the door of the tabernacle.

16 And the LORD said unto Moses, "Behold, thou must sleep with thy fathers, and this people will go a whoring after strange gods of the land whither they go and will forsake me and break the covenant which I have made with them. 17 And then my wrath will wax hot against them, and I will forsake them and will hide my face from them, and they shall be consumed. And when much adversity and tribulation is come upon them, then they will say, 'Because our God is not among us, 18 these tribulations are come upon us.' But I will hide my face that same time for all the evil's sake which they shall have wrought, in that they are turned unto strange gods. 19 Now, therefore, write ye this song, and teach it the children of Israel and put it in their mouths - that this song may be my witness unto the children of Israel. 20 For when I have brought them into the land which I sware unto their fathers that runneth with milk and honey, then they will eat and fill themselves and wax fat and turn unto strange gods and serve them and rail on me and break my covenant. 21 And then, when much mischief and tribulation is come upon them, this song shall answer before them, and be a witness. It shall not be forgotten out of the mouths of their seed: for I know their imagination which they go about even now before I have brought them into the land which I sware." 22 And Moses wrote this song the same season, and taught it the children of Israel.