Aslam

Surah Ali 'Imran — 3:89
إِلَّا ٱلَّذِينَ تَابُواْ مِنۢ بَعۡدِ ذَٰلِكَ وَأَصۡلَحُواْ فَإِنَّ ٱللَّهَ غَفُورٞ رَّحِيمٌ
As for those who repent afterwards and mend their ways, then surely Allah is All-Forgiving, Most Merciful.

Commentary

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.

Read Tafsir Ibn Kathir