(7) باب قَوْلِهِ تَعَالَى { إِنَّ الْحَسَنَاتِ يُذْهِبْنَ السَّيِّئَاتِ}
Ibn Mas'ud reported that a person came to Allah's Messenger (ﷺ) and told him that he had kissed a woman or touched her with his hand or did something like this. He inquired of him about its expiation. It was (on this occasion) that Allah, the Exalted and Glorious, revealed this verse (as mentioned above).
Reference: Sahih Muslim 2763 b
In-book reference: Book 50, Hadith 48
USC-MSA web (English) reference(deprecated numbering scheme): Book 37, Hadith 6656