Riyad as-Salihin, Book 9, Hadith 1044 (In-Book)

Ibn Mas'ud (May Allah be pleased with him) reported: A man kissed a woman. So he came to the Messenger of Allah and informed him about it. Then Allah revealed this Ayah: "And perform the Salat, between the two ends of the day and in some hours of the night. Verily, the good deeds efface the evil deeds (i.e., minor sins)." (11:114) The man asked the Messenger of Allah whether this applies to him only. The Messenger of Allah said, "It applies to all of my Ummah."[Al-Bukhari and Muslim].

وعن ابن مسعود رضي الله عنه أن رجلا أصاب من امرأة قُبلةً، فأتى النبي صلى الله عليه وسلم فأخبره فأنزل الله تعالى‏:‏ ‏{‏أقم الصلاة طرفي النهار وزلفًا من الليل، إن الحسنات يذهبن السيئات‏}‏ فقال الرجل‏:‏ ألي هذا‏؟‏ قال‏:‏ ‏ "‏لجميع أمتي كلهم‏" ‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

sunnah.com