وَٱلَّذِينَ إِذَا فَعَلُواْ فَٰحِشَةً أَوۡ ظَلَمُوٓاْ أَنفُسَهُمۡ ذَكَرُواْ ٱللَّهَ فَٱسۡتَغۡفَرُواْ لِذُنُوبِهِمۡ وَمَن يَغۡفِرُ ٱلذُّنُوبَ إِلَّا ٱللَّهُ وَلَمۡ يُصِرُّواْ عَلَىٰ مَا فَعَلُواْ وَهُمۡ يَعۡلَمُونَ ١٣٥
Wal-ladhīna idhā faʿalū fāḥishatan aw ẓalamū anfusahum dhakarullāha fastaghfarū lidhunūbihim wa may yaghfirudh-dhunūba illallāhu wa lam yuṣirrū ʿalā mā faʿalū wa hum yaʿlamūn.
And those who, when they commit an immorality or wrong themselves [by transgression], remember Allāh and seek forgiveness for their sins - and who can forgive sins except Allāh? - and [who] do not persist in what they have done while they know.
Translation: Sahih International