مَا مِنْ عَبْدٍ يُذْنِبُ ذَنْباً فَيُحْسِنُ الطُّهُورَ، ثُمَّ يَقُومُ فَيُصَلِّي رَكْعَتَيْنِ، ثُمَّ يَسْتَغْفِرُاللهَ إلَّا غَفَرَ اللهُ لَهُ
Any servant who commits a sin and as a result, performs ablution, prays two rakʿahs of Ṣalāh and then seeks Allāh's forgiveness, Allāh would forgive him.
Reference: Any servant who commits a sin and as a result, performs ablution, prays two rakʿahs of Ṣalāh and then seeks Allāh's forgiveness, Allāh would forgive him. Abū Dāwud (#1521, 2/86) and al-Tirmidhī (#406, #3006, 2/257). Al-Albānī authenticated it in _Ṣaḥīḥ Abī Dāwud_ (1/283).