Dalil

Quran At-Tawbah 9:27

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

Translation

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