Deuteronomy 30:15–20
Moses said that he set before them the choice between life and prosperity on the one hand and death and adversity on the other. Moses commanded them to love God, to walk in God's ways, and to keep God's commandments, that they might thrive and increase, and that God might bless them in the land. But if their hearts turned away and they gave no heed, and were lured into the worship of other gods, Moses warned that they would certainly perish and not long endure in the land. Moses called heaven and earth to witness that he had put before the Israelites a choice between life and death, blessing and curse. He exhorted them to choose life by loving God, heeding the commandments, and holding fast to God, so that they might have life and long endure on the land that God swore to their ancestors, Abraham, Isaac, and Jacob.
Deuteronomy 31:1–3
Moses told the Israelites that he was 120 years old that day, could no longer go out and come in, and God had told him that he was not to go over the Jordan River. God would go over before them and destroy the nations ahead of them, and Joshua would go over before them, as well.
Deuteronomy 31:4–6
Moses promised that God would destroy those nations as God had destroyed Sihon and Og, the kings of the Amorites, and the Israelites would dispossess those nations according to the commandments that Moses had commanded them. Moses exhorted the Israelites to be strong and courageous, for God would go with them and would not forsake them.
Deuteronomy 31:7–9
in the sight of the people, Moses told Joshua to be strong and courageous, for he would go with the people into the land that God had sworn to their fathers and cause them to inherit it, and God would go before him, be with him, and not forsake him. Moses wrote this law and delivered it to the priests, the sons of Levi, who bore the Ark of the Covenant and to all the elders of Israel.
Deuteronomy 31:10–13
Moses commanded them to read the law before all Israel at the end of every seven years during Sukkot, when all Israel was to appear in the place that God would choose. Moses told them to assemble all the people—men, women, children, and strangers—that they might hear, learn, fear God, and observe the law as long as the Israelites lived in the land that they were going over the Jordan to possess.
Deuteronomy 31:20–24
God continued that when God will have brought the Israelites into the land flowing with milk and honey (חָלָב וּדְבַשׁ, chalav udevash), they will have eaten their fill, grown fat, turned to other gods, and broken the covenant, then when many evils will have come upon them, this song would testify before them as a witness. So Moses wrote the song that day and taught it to the Israelites. And God charged Joshua to be strong and courageous, for he would bring the Israelites into the land that God had sworn to them, and God would be with him. And Moses finished writing the law in a book.
Deuteronomy 31:25–28
Moses commanded the Levites who bore the Ark of the Covenant to take the book and put it by the side of the Ark so that it might serves as a witness against the people. For Moses said that he knew that even that day, the people had been rebelling against God, so how much more would they after his death?