Abdullah bin Masud reported,

A man kissed a woman, then came to the Prophet ﷺ and informed him about it. Allah عز وجل then revealed, "And establish prayer at the two ends of the day and at the approach of the night. Indeed, good deeds drive away bad deeds" [Hud 11:114].The man asked, "Messenger of Allah, is this for me alone?"He replied, "It is for my entire ummah, all of them."

Bukhari 526

Sahih

حدثنا قتيبة قال حدثنا يزيد بن زريع عن سليمان التيمي عن أبي عثمان النهدي

عن ابن مسعود

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

البخاري 526صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer times
Chapter
Prayer is expiation
Numbering
Darussalam 526
Bukhari 526