Surah Al-A'raf — Ayah 141 (7:141)
وَإِذۡ أَنجَيۡنَٰكُم مِّنۡ ءَالِ فِرۡعَوۡنَ يَسُومُونَكُمۡ سُوٓءَ ٱلۡعَذَابِ يُقَتِّلُونَ أَبۡنَآءَكُمۡ وَيَسۡتَحۡيُونَ نِسَآءَكُمۡۚ وَفِي ذَٰلِكُم بَلَآءٞ مِّن رَّبِّكُمۡ عَظِيمٞ ١٤١
English translation (Saheeh International)
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.
Brief commentary
And remember O Children of Israel, when I saved you from the humiliation of Pharaoh and his people, who were making you suffer greatly, killing your sons and letting your women live to serve them. Being saved from Pharaoh and his people was a great test from your Lord, to see if you would be thankful.