Chp. 31 verses 1 - 21: Introduction, Moshe tells the people that he would not be taking them into the the land but that it would be Yehoshua. He told them not to fear since Hashem would be with them as with Og and Sichon. He spoke to Yehoshua in front of all the nation and told him to be strong and courageous. He then wrote a sefer Torah and gave it to the Kohanim and the elders. He commanded that the king read from the book of Devarim at the end of every seventh year. Everyone was to attend men, women, and children. Hashem then told Moshe that he was about to die and to bring Yehoshua to the Tent. Hashem told them the sins that the nation would commit in the future.