Dalil

Quran Al-Furqan 25:71

وَمَن تَابَ وَعَمِلَ صَٰلِحٗا فَإِنَّهُۥ يَتُوبُ إِلَى ٱللَّهِ مَتَابٗا

Translation

And he who repents and does righteousness does indeed turn to Allāh with [accepted] repentance.