Moses tells the people he is 120 years old, can no longer go out and come in, and that the Lord has told him he will not cross the Jordan. The Lord himself will cross before them, destroy the nations and Joshua will lead them. He asks them to be strong and courageous, because the Lord their God goes with them and will not leave or forsake them. Then he calls Joshua before all Israel and tells him the same: be strong and courageous, for you will go with this people into the land, and the Lord will go before you.
Moses writes down this law and gives it to the priests who carry the ark and to the elders. He commands that every seven years, in the year of release, at the Feast of Booths, it be read before all Israel, men, women, children and foreigners, so that they hear, learn to fear the Lord and keep his words.
The Lord calls Moses and Joshua to the tent of meeting, where he appears in a pillar of cloud. He tells Moses that he is about to die and that the people will go after other gods and break the covenant. Then the Lord will hide his face from them, and evils will come upon them. So he orders a song to be written, to be taught to the children, as a witness against them. The Lord commissions Joshua, and Moses finishes writing the law and commands the Levites to place it beside the ark of the covenant as a witness. Moses knows they will be rebellious and stiff-necked, and he gathers the elders to speak the song to them.