Deuteronomy
God then commanded Moses to write the Law on stone tablets for the Israelites to remember.  Then Moses formally made Joshua, son of Nun, the new leader over the Israelites.  God gave Moses a song to sing, and asked him to teach it to the Israelites.  The song would remind them in the future about how they had gone against God.