Chapter 45 of 133
مَا يَقُولُ وَيَفْعَلُ مَنْ أَذْنَبَ ذَنْبًا
مَا مِنْ عَبْدٍ يُذْنِبُ ذَنْبًا فَيُحْسِنُ الطُّهُورَ، ثُمَّ يَقُومُ فَيُصَلِّي رَكْعَتَيْنِ، ثُمَّ يَسْتَغْفِرُ اللَّهَ إِلَّا غَفَرَ اللَّهُ لَهُ
Translation
Any servant who commits a sin and as a result, performs ablution, prays two units of prayer (i.e. two rakAAas) and then seeks Allah’s forgiveness, Allah would forgive him.
Reference
أبو داود 2/ 86 والتّرمذي 2/ 257 وصحّحه الألبانيّ في صحيح أبي داود 1/ 283
References are as given in Hisn al-Muslim (book volume/page).
Source: Hisn al-Muslim by Sa'id ibn Ali ibn Wahf al-Qahtani. Arabic text and references: asellam/HisnElMuslim. English translation, transliteration and audio: hisnmuslim.com.