Sunan Ibn Majah, Volume 5, Book 37, Hadith 4254 (DarusSalam) ⓘ
It was narrated from Ibn Mas’ud that a man came to the Prophet and said that he had kissed a woman, and he started to ask about expiation, but he (the Prophet) did not say anything to him. Then Allah revealed the Verse: “And perform prayers at the two ends of the day and in some hours of the night. Verily, the good deeds remove the evil deeds. That is a reminder for the mindful.” [11:114] The man said: “O Messenger of Allah, is this (the Verse) just for me?” He said: “It is for whoever acts upon it among my nation.”
حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ بْنِ حَبِيبٍ، حَدَّثَنَا الْمُعْتَمِرُ، سَمِعْتُ أَبِي، حَدَّثَنَا أَبُو عُثْمَانَ، عَنِ ابْنِ مَسْعُودٍ، : أَنَّ رَجُلاً، أَتَى النَّبِيَّ ـ صلى الله عليه وسلم ـ فَذَكَرَ أَنَّهُ أَصَابَ مِنِ امْرَأَةٍ قُبْلَةً فَجَعَلَ يَسْأَلُ عَنْ كَفَّارَتِهَا فَلَمْ يَقُلْ لَهُ شَيْئًا فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ {وَأَقِمِ الصَّلاَةَ طَرَفَىِ النَّهَارِ وَزُلَفًا مِنَ اللَّيْلِ إِنَّ الْحَسَنَاتِ يُذْهِبْنَ السَّيِّئَاتِ ذَلِكَ ذِكْرَى لِلذَّاكِرِينَ} فَقَالَ الرَّجُلُ : يَا رَسُولَ اللَّهِ أَلِي هَذِهِ فَقَالَ : " هِيَ لِمَنْ عَمِلَ بِهَا مِنْ أُمَّتِي " .
also referenced under: Hadith 4254 (Reference) & Book 37, Hadith 4395 (In-Book)