Surah At-Tawba

9:27

ثُمَّ يَتُوبُ ٱللَّهُ مِنۢ بَعْدِ ذَٰلِكَ عَلَىٰ مَن يَشَآءُ ۗ وَٱللَّهُ غَفُورٌۭ رَّحِيمٌۭ

Then Allah will accept repentance after that for whom He wills; and Allah is Forgiving and Merciful.

Tafsir 9:27

Then whoever rejects disbelief and misguidance after that affliction, Allah will accept their repentance. Allah is Forgiving and Merciful to those of His servants who repent to Him, accepting their repentance after their denial of the truth and their disobedience.