Abdullah bin Masud reported,

A man kissed a woman, then came to the Prophet ﷺ and told him about it. Then was revealed, "Establish prayer at the two ends of the day and at the approach of the night. Indeed, good deeds erase bad deeds. That is a reminder for those who remember" [Hud 11:114].The man asked, "Messenger of Allah, is this for me?"He replied, "It is for whoever among my community acts upon it."

Muslim 7001

Sahih

حدثنا قتيبة بن سعيد وأبو كامل فضيل بن حسين الجحدري كلاهما عن يزيد بن زريع واللفظ لأبي كامل حدثنا يزيد حدثنا التيمي عن أبي عثمان

عن عبد الله بن مسعود

أن رجلا أصاب من امرأة قبلة فأتى النبي ﷺ فذكر ذلك له قال فنزلت {أقم الصلاة طرفي النهار وزلفا من الليل إن الحسنات يذهبن السيئات ذلك ذكرى للذاكرين} قال فقال الرجل ألي هذه يا رسول الله قال لمن عمل بها من أمتي

مسلم 7001صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tawba
Chapter
His saying, "Indeed good deeds remove bad deeds"
Numbering
Darussalam 7001
Muslim 7001