And [ recall , O Children of Israel ] , when We saved you from the people of Pharaoh , [ who were ] afflicting you with the worst torment - killing your sons and keeping your women alive . And in that was a great trial from your Lord .