Aslam

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

Commentary

Except those who repent to Allah after what they have done and correct their actions, for Allah will accept their repentance and their testimony. Allah is Forgiving to those of His servants who repent and is Merciful to them.

Read Tafsir Ibn Kathir