Wallazeena izaa fa'aloo faahishatan aw zalamooo anfusahum zakarul laaha fastaghfaroo lizunoobihim; wa mai yaghfiruz zunooba illal laahu wa lam yusirroo 'alaa maa fa'aloo wa hum ya'lamooo
And those who, when they commit an immorality or wrong themselves [by transgression], remember Allah and seek forgiveness for their sins – and who can forgive sins except Allah? – and [who] do not persist in what they have done while they know.
1 Mufti Taqi Usmani
-and those who, when they happen to commit a shameful act or wrong themselves, remember Allah, then, seek forgiveness for their sins-and who is there to forgive sins except Allah?-and do not persist in what they have done, knowingly.