According to the book of Exodus, Moses was born to a Hebrew mother, Jochebed, who hid him when a Pharaoh (Feraun, as mentioned in the Qu'ran), ordered all newborn Hebrew boys to be killed, and he ended up being adopted into the Egyptian royal family. After killing an Egyptian slave-master, Moses fled and became a shepherd, and was later commanded by God to deliver the Hebrews from slavery. After the Ten Plagues were unleashed on Egypt, he led the Hebrew slaves out of Egypt, through the Red Sea, where they wandered in the desert for 40 years, during which time, according to the Bible, Moses received the Ten Commandments. Despite living to 120, Moses died before reaching the Land of Israel. According to the Torah, Moses was denied entrance to that destination because he himself disobeyed God's instructions about how to release water from a rock. According to the Qu'ran the reason for the wandering in the desert was the disobedience of his Israelite followers during the Exodus. In Islamic perspective, Moses (Hazrat Musa) and the obedient Israelites weren't punished, but got rewards for their patience during the wandering years.