Sure Al-A'raaf

7:141

وَإِذْ أَنجَيْنَٰكُم مِّنْ ءَالِ فِرْعَوْنَ يَسُومُونَكُمْ سُوٓءَ ٱلْعَذَابِ ۖ يُقَتِّلُونَ أَبْنَآءَكُمْ وَيَسْتَحْيُونَ نِسَآءَكُمْ ۚ وَفِى ذَٰلِكُم بَلَآءٌۭ مِّن رَّبِّكُمْ عَظِيمٌۭ

Und (gedenkt,) als Wir euch vor den Leuten Fir'auns retteten, als sie euch eine böse Qual auferlegten, indem sie eure Söhne allesamt töteten und (nur) eure Frauen am Leben ließen. Darin war für euch eine gewaltige Prüfung von eurem Herrn.

Tafsir 7:141

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.