Moses led the Israelites through the wilderness, and God gave them manna and quails to eat, and water from rocks to drink. He also caused the Amalekites to lose in a battle. When Moses came to Mount Sinai, he went up to receive the Ten Commandments and other laws from God. The Ten Commandments were written by God on two tablets. God also told him the instructions of the priests' duties. Moses was up the mountain for forty days and forty nights.