Sure Al-Baqara

2:49

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

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

Tafsir 2:49

O Israelites! Remember when Allah saved you from the people of Pharaoh, who were tormenting you, slaughtering your sons so you would not survive, and letting your women live so they could serve them, taking great pains to humiliate and insult you. When you were saved from the oppression of Pharaoh and his people, it was a great test for you from your Lord, to see if you would be thankful.