14 Then the LORD said to Moses, "Behold, the time for you to die is near; call Joshua, and present yourselves at the tent of meeting, that I may commission him " So Moses and Joshua went and presented themselves at the tent of meeting. 15 The LORD appeared in the tent in a pillar of cloud, and the pillar of cloud stood at the doorway of the tent.
16 The LORD said to Moses, "Behold, you are about to lie down with your fathers; and this people will arise and play the harlot with the strange gods of the land, into the midst of which they are going, and 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 consumed, and many evils and troubles will come upon them; so that they will say in that day, 'Is it not because our God is not among us that these evils have come upon us?' 18 "But I will surely hide My face in that day because of all the evil which they will do, for they will turn to other gods.
19 "Now therefore, write this song for yourselves, and teach it to the sons of Israel; put it on their lips, so that this song may be a witness for Me against the sons of Israel. 20 "For when I bring them into the land flowing with milk and honey, which I swore to their fathers, and they have eaten and are satisfied and become prosperous, then they will turn to other gods and serve them, and spurn Me and break My covenant. 21 "Then it shall come about, when many evils and troubles have come upon them, that this song will testify before them as a witness (for it shall not be forgotten from the lips of their descendants); for I know their intent which they are developing today, before I have brought them into the land which I swore." 22 So Moses wrote this song the same day, and taught it to the sons of Israel.
23 Then He commissioned Joshua the son of Nun, and said, "Be strong and courageous, for you shall bring the sons of Israel into the land which I swore to them, and I will be with you."
24 It came about, when Moses finished writing the words of this law in a book until they were complete, 25 that Moses commanded the Levites who carried the ark of the covenant of the LORD, saying, 26 "Take this book of the law and place it beside the ark of the covenant of the LORD your God, that it may remain there as a witness against you. 27 "For I know your rebellion and your stubbornness; behold, while I am still alive with you today, you have been rebellious against the LORD; how much more, then, after my death? 28 "Assemble to me all the elders of your tribes and your officers, that I may speak these words in their hearing and call the heavens and the earth to witness against them. 29 "For I know that after my death you will act corruptly and turn from the way which I have commanded you; and evil will befall you in the latter days, for you will do that which is evil in the sight of the LORD, provoking Him to anger with the work of your hands."New American Standard Bible (NASB) Copyright © 1960, 1962, 1963, 1968, 1971, 1972, 1973, 1975, 1977, 1995 by The Lockman Foundation