Joshua 8:34
And afterward he read all the words of the law, the blessings and cursings, according to all that is written in the book of the law. And afterward he read all the words of the law, the blessings and cursings, according to all that is written in the book of the law.
The verse records a covenant renewal on entering Canaan, with Mount Ebal and Mount Gerizim standing as witnesses to Israel's solemn vows, vows that were later renewed when the tribes assembled at Shechem before Joshua's death. The place at Shechem recalled God's covenant with Abraham and Jacob. That later renewal recalled the evidences of what God had done in giving Israel a land for which they did not labor, cities they did not build, and vineyards and oliveyards they did not plant.
The gathering was to recognize God's law and renew covenant loyalty before taking possession of the inheritance, putting this higher religious duty before further military operations. All Israel was present, including men, women, children, and resident strangers. While the people remained faithful to God they were protected even among unconquered enemies.
Joshua publicly read the blessings for obeying God's law and the curses for disobeying it, so that everyone could know the covenant terms for possessing Canaan and assent to the consequences of obeying or neglecting them. The tribes stationed on Gerizim and on Ebal answered Amen to their respective portion. He then read the rest of the law, including the statutes and judgments delivered through Moses, and he also repeated the Ten Commandments and the statutes and precepts recorded through Moses. The law had been written out where all could read it, as well as preserved in the ark. This public reading came only weeks after Moses had delivered Deuteronomy to the people.