حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ بْنِ حَبِيبٍ، حَدَّثَنَا الْمُعْتَمِرُ، سَمِعْتُ أَبِي، حَدَّثَنَا أَبُو عُثْمَانَ، عَنِ ابْنِ مَسْعُودٍ، ‏:‏ أَنَّ رَجُلاً، أَتَى النَّبِيَّ ـ صلى الله عليه وسلم ـ فَذَكَرَ أَنَّهُ أَصَابَ مِنِ امْرَأَةٍ قُبْلَةً فَجَعَلَ يَسْأَلُ عَنْ كَفَّارَتِهَا فَلَمْ يَقُلْ لَهُ شَيْئًا فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ {وَأَقِمِ الصَّلاَةَ طَرَفَىِ النَّهَارِ وَزُلَفًا مِنَ اللَّيْلِ إِنَّ الْحَسَنَاتِ يُذْهِبْنَ السَّيِّئَاتِ ذَلِكَ ذِكْرَى لِلذَّاكِرِينَ}‏ فَقَالَ الرَّجُلُ ‏:‏ يَا رَسُولَ اللَّهِ أَلِي هَذِهِ فَقَالَ ‏:‏ ‏"‏ هِيَ لِمَنْ عَمِلَ بِهَا مِنْ أُمَّتِي ‏"‏ ‏.‏

It wasnarrated from Ibn Mas’ud that a man came to the Prophet (PBUH)andsaid that he had kissed a woman, and he started to ask aboutexpiation, but he (the Prophet (PBUH)) did not say anything to him.Then Allah revealed the Verse: “And perform prayers at the two endsofthe day and in some hours of the night. Verily, the good deedsremovethe evil deeds. That is a reminder for the mindful.”[11:114] The mansaid: “O Messenger of Allah, is this (the Verse)just for me?” Hesaid: “It is for whoever acts upon it among mynation.” Translation Not Available

Book Ref: Sunan Ibn Majah Book 37 Hadith 4254
Web Ref:  Sunan Ibn Majah Vol 5 Book 37 Hadith 4254