In the narrative of the Exodus , the Bible tells that God helped the Children of Israel escape from their slavery in Egypt by inflicting ten plagues upon the ancient Egyptians before the Pharaoh would release his Israelite slaves; the tenth and worst of the plagues was the death of the Egyptian first-born .