Deuteronomy
Moses told the Israelites what had happened throughout their journey.  He scolded them for disobeying God, who made them go through a very hard journey.  Moses then gave them the Law, teaching them what must be done, and what cannot be done.  These laws were given to him by God.  (See Ten Commandments.) The Law warns against worshipping other gods, and tells that all Israel, every one, must obey God alone. He warned them against worshipping idols, and commanded them to treat the poor, foreigners, and orphans well.  If the Israelites obey God, they will prosper (be successful). But God predicted that the future generations will suffer because of their disobedience.  One day, however the Israelites would return to God.