وَالَّذِينَ إِذَا فَعَلُوا فَاحِشَةً أَوْ ظَلَمُوا أَنفُسَهُمْ ذَكَرُوا اللَّهَ فَاسْتَغْفَرُوا لِذُنُوبِهِمْ وَمَن يَغْفِرُ الذُّنُوبَ إِلَّا اللَّهُ وَلَمْ يُصِرُّوا عَلَى مَا فَعَلُوا وَهُمْ يَعْلَمُونَ
and those who, when they commit an indecent act or wrong themselves, remember Allah, and plead [to Allah seeking His] forgiveness for their sins—and who forgives sins except Allah?—and who knowingly do not persist in what [sins] they have committed.
Agha Ali Puya Commentary
Commentary on Quran 3:135
[Pooya/Ali Commentary 3:135] Those who do ill-deeds, in fact, wrong themselves. Every sinner corrupts his own soul and deserves punishment. If by remorse and making amends in the way prescribed by the divine law he turns repentant to Allah, his sins may be forgiven. It is Allah who alone can forgive those sinners who do not persist in that which they have done.