Dalil

Quran Taha 20:82

وَإِنِّي لَغَفَّارٞ لِّمَن تَابَ وَءَامَنَ وَعَمِلَ صَٰلِحٗا ثُمَّ ٱهۡتَدَىٰ

Translation

But indeed, I am the Perpetual Forgiver of whoever repents and believes and does righteousness and then continues in guidance.