Mishkat al-Masabih 566
وَعَنِ ابْنِ مَسْعُودٍ قَالَ: إِنَّ رَجُلًا أَصَابَ مِنِ امْرَأَةٍ قُبْلَةً فَأَتَى النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَأَخْبَرَهُ فَأَنْزَلَ اللَّهُ تَعَالَى: (وَأَقِمِ الصَّلَاةَ طَرَفَيِ النَّهَارِ وَزُلَفًا مِنَ اللَّيْل إِن الْحَسَنَات يذْهبن السَّيِّئَات) فَقَالَ الرَّجُلُ: يَا رَسُولَ اللَّهِ أَلِي هَذَا؟ قَالَ: «لِجَمِيعِ أُمَّتِي كُلِّهِمْ» . وَفِي رِوَايَةٍ: «لِمَنْ عَمِلَ بِهَا مِنْ أُمَّتِي»
From Ibn Masʿud, who said: A man kissed a woman, then came to the Prophet ﷺ and told him. So Allah the Exalted revealed: 'And establish the prayer at the two ends of the day and in some hours of the night. Indeed, good deeds remove evil deeds.' The man said: "O Messenger of Allah, is this for me?" He said: "For all of my Ummah." In a narration: "For whoever of my Ummah acts upon it."