Judaism originated from the ancient Hebrews who lived in Canaan, now known as Palestine. According to the Torah, God chose Abraham and promised the land of Canaan to his descendants. Moses led the Hebrews out of slavery in Egypt in an event known as the Exodus. The Ten Commandments given to Moses by God on Mount Sinai formed the basis of Jewish religious law. The Kingdom of Israel was established but divided into the northern kingdom of Israel and southern kingdom of Judah. Both kingdoms were later conquered and the first temple was destroyed, though the Hebrews were allowed to return and rebuild the second temple under Persian rule.