Aal-i-Imraan • EN-TAFSIR-IBN-ABBAS
﴿ وَٱلَّذِينَ إِذَا فَعَلُوا۟ فَٰحِشَةً أَوْ ظَلَمُوٓا۟ أَنفُسَهُمْ ذَكَرُوا۟ ٱللَّهَ فَٱسْتَغْفَرُوا۟ لِذُنُوبِهِمْ وَمَن يَغْفِرُ ٱلذُّنُوبَ إِلَّا ٱللَّهُ وَلَمْ يُصِرُّوا۟ عَلَىٰ مَا فَعَلُوا۟ وَهُمْ يَعْلَمُونَ ﴾
“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.”
The following was then revealed about a man from the Helpers because he stared at, touched and kissed the wife of a man from Thaqif, saying: (And those who, when they do an evil thing) a transgression (or wrong themselves) by staring at [women], touching or kissing (remember Allah) fear Allah (and implore forgiveness for their sins) repent of their sins (�-who forgiveth sins save Allah only?) the sins of he who repents (-and will not knowingly) i.e. knowing that it is a transgression against Allah (repeat (the wrong) they did).