Jami` at-Tirmidhi, Volume 5, Book 44, Hadith 3114 (DarusSalam)

Narrated Ibn Mas'ud: that a man unlawfully kissed a woman. So he came to the Prophet to ask him about its atonement. So (the following) Ayah was revealed: And perform the Salat, at the two ends of the day and in some hours of the night (11:114). The man said: "Is this for me O Messenger of Allah?" He said: "For you and for whoever does that among my Ummah."

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

sunnah.com