Moses addressed the people, saying that he is 120 years of age on that day, and he is not permitted to cross the Jordan River together with them. Instead, Joshua will lead them, and G‑d will go before them and destroy their enemies.
Moses continued his talk: G‑d will vanquish the inhabitants of Canaan as He did the Emorites and Bashanites. Moses enjoined the Israelites to be strong and not fear their enemies.
Moses summoned Joshua and told him to be strong and courageous, for G‑d will be going before him and will not forsake him. Moses then wrote the entire Torah and gave it to the Kohnaim (priests) and the Israelite elders.
Moses gives the commandment of Hakhel (assembly), whereby every seven years, during the holiday of Sukkot which follows the Sabbatical year, all men, women, and children assemble and the king publicly reads sections of the Torah.
G‑d commanded Moses to enter the Tabernacle together with Joshua. G‑d appeared to them both and informed them that a time will come when the Israelites will abandon G‑d and stray after alien gods. At that time, G‑d will hide His countenance from the nation, and they will be subjected to much evils and troubles. Therefore, G‑d says, “Write for yourselves this song, and teach it to the Children of Israel. Place it into their mouths, in order that this song will be for Me as a witness…” This ‘song’ is narrated in next week’s Torah reading.
When G‑d’s wrath will find the Israelites as a consequence of their evil actions, they will claim that the misfortunes are befalling them because G‑d has abandoned them. At that time, the song which Moses and Joshua wrote will bear testimony that these events are in fact punishment for their sinful behaviour.
Moses took the freshly concluded Torah scroll and gave it to the Levites. He instructed them to place it beside the Ark which contained the Tablets. Moses then gathered the entire nation to hear the song, wherein he would call upon the heavens and earth to be witnesses that the Israelites were forewarned regarding their fate.