وَٱلَّذِينَ إِذَا فَعَلُوا۟ فَـٰحِشَةً أَوْ ظَلَمُوٓا۟ أَنفُسَهُمْ ذَكَرُوا۟ ٱللَّهَ فَٱسْتَغْفَرُوا۟ لِذُنُوبِهِمْ وَمَن يَغْفِرُ ٱلذُّنُوبَ إِلَّا ٱللَّهُ وَلَمْ يُصِرُّوا۟ عَلَىٰ مَا فَعَلُوا۟ وَهُمْ يَعْلَمُونَ
Asad Quran Translation
and who, when they have committed a shameful deed or have [otherwise] sinned against themselves, remember God and pray that their sins be forgiven - for who but God could forgive sins? - and do not knowingly persist in doing whatever [wrong] they may have done.
Malik Quran Translation
who, if they commit an indecency or wrong their own souls, earnestly remember Allah and seek forgiveness for their sins; for no one can forgive sins except Allah, and those who do not knowingly persist in something wrong which they have done.
Yusuf Ali Quran Translation
And those who having done something to be ashamed of or wronged their own souls earnestly bring Allah to mind and ask for forgiveness for their sins and who can forgive sins except Allah? And are never obstinate in persisting knowingly in (the wrong) they have done. 454 455
The righteous man, when he finds he has fallen into sin or error, does not whine or despair, but asks for Allah's forgiveness, and his faith gives him hope. If he is sincere, that means that he abandons his wrong conduct and makes amends.
Sin is a sort of oppression of ourselves by ourselves. This follows from the doctrine of personal responsibility, as opposed to that of blind fate or of an angry God or gods lying in wait for revenge or injury on mankind.
Mustafa Khattab Quran Translation
˹They are˺ those who, upon committing an evil deed or wronging themselves, remember Allah and seek forgiveness and do not knowingly persist in sin—and who forgives sins except Allah?
Piktal Quran Translation
And those who, when they do an evil thing or wrong themselves, remember Allah and implore forgiveness for their sins--Who forgiveth sins save Allah only?--and will not knowingly repeat (the wrong) they did.
Waallatheena itha faAAaloo fahishatan aw thalamoo anfusahum thakaroo Allaha faistaghfaroo lithunoobihim waman yaghfiru alththunooba illa Allahu walam yusirroo AAala ma faAAaloo wahum yaAAlamoona