God, who is omnipotent, could have softened Pharaoh’s heart, but he hardens it instead, which gives him a reason to afflict every Egyptian with painful boils and other miseries before killing every one of their firstborn sons. (The word Passover alludes to the executioner angel’s passing over the households with Israelite firstborns.) God follows this massacre with another one when he drowns the Egyptian army as they pursue the Israelites across the Red Sea. The Israelites assemble at Mount Sinai and hear the Ten Commandments, the great moral code that outlaws engraved images and the coveting of livestock but gives a pass to slavery, rape, torture, mutilation, and genocide of neighboring tribes. The Israelites become impatient while waiting for Moses to return with an expanded set of laws, which will prescribe the death penalty for blasphemy, homosexuality, adultery, talking back to parents, and working on the Sabbath. To pass the time, they worship a statue of a calf, for which the punishment turns out to be, you guessed it, death. Following orders from God, Moses and his brother Aaron kill three thousand of their companions.
Steven Pinker, The Better Angels of Our Nature: Why Violence Has Declined
god, rape, violence