And remember , We delivered you from the people of Pharaoh : They set you hard tasks and punishments , slaughtered your sons and let your women-folk live ; therein was a tremendous trial from your Lord .