Abdullah bin Masud reported,

A man kissed a woman, then came to the Prophet ﷺ and told him about it. Allah then revealed, "And establish the prayer at the two ends of the day and during parts of the night. Indeed, good deeds wipe away bad deeds" [Hud 11:114].The man asked, "Messenger of Allah, is this for me?"He replied, "It is for all of my community."

Azami 1747

Sahih

عن ابن مسعود

أن رجلا أصاب من امرأة قبلة، فأتى النبي ﷺ فأخبره، فأنزل الله: {وأقم الصلوة طرفي النهار وزلفا من اليل إن الحسنت يذهبن السيئات} [سورة هود ١١٤] فقال الرجل: يا رسول الله! ألي هذا؟ قال: لجميع أمتي كلهم.

الأعظمي 1747صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Obligation of prayer and its virtue
Section
Prayer is an expiation
Numbering
Jami al-Kamil 1747 (2nd edition)
Azami 1747