Sure Aal-i-Imraan

3:89

إِلَّا ٱلَّذِينَ تَابُوا۟ مِنۢ بَعْدِ ذَٰلِكَ وَأَصْلَحُوا۟ فَإِنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌ

außer denjenigen, die nach alledem bereuen und verbessern, so ist Allah Allvergebend und Barmherzig.

Tafsir 3:89

This punishment is for everyone except those who repent to Allah, asking for forgiveness, after their disbelief and disobedience, and correct what they have done. Truly, Allah is Forgiving and Compassionate to those who repent to Him.