What to say and do after committing a sin
What to say and do after committing a sin: a supplication from Hisn al-Muslim with the Arabic text, transliteration, English translation and audio.
مَا مِنْ عَبْدٍ يُذْنِبُ ذَنْبًا فَيُحْسِنُ الطُّهُورَ ، ثُمَّ يَقُومُ فَيُصَلِّي رَكْعَتَيْنِ ، ثُمَّ يَسْتَغْفِرُ اللهَ إِلَّا غُفِرَ لَهُ
ma min abdin yudhnibu dhanban fa-yuhsinut-tuhoora, thumma yaqoomu fa-yusallee rak'atayni, thumma yastaghfirullaha illa ghufira lah
There is no servant who commits a sin, then performs ablution well, then stands and prays two rak‘ahs, then seeks forgiveness from Allah, except that he is forgiven.
Abû Dâwûd 2/86 and at-Tirmidhî 2/257 ; al-Albânî authenticated it in Sahîh Abî Dâwûd 1/283