Abdullah bin Masud reported,

A man came to the Prophet ﷺ and mentioned that he had kissed a woman unlawfully. He kept asking about its expiation, but the Prophet ﷺ said nothing to him. Then Allah عز وجل revealed, "And establish prayer at the two ends of the day and during parts of the night. Indeed, good deeds wipe away bad deeds. That is a reminder for those who remember" [Hud 11:114].The man asked, "Messenger of Allah, is this for me alone?"He replied, "It is for whoever among my community acts upon it."

Ibn Majah 4254

Sahih

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

عن ابن مسعود

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

ابن ماجه 4254صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Tawba
Numbering
Darussalam 4254
Ibn Majah 4254