Sayyiduna Abdullah (may Allah be pleased with him) said: A man touched a woman (intimately) without intercourse. He came to Sayyiduna Umar (may Allah be pleased with him), who regarded it as a very great sin; then he came to Sayyiduna Abu Bakr (may Allah be pleased with him), who did the same; then he came to the Prophet (peace and blessings be upon him), and (the narrator said:) I do not know whether he regarded it as grave or not. Then this verse was revealed: "Establish prayer at the two ends of the day and in the early hours of the night; indeed, good deeds remove evil deeds." [Surah Hud: 114] The man said: "O Messenger of Allah! Is this only for me?" He (peace and blessings be upon him) said: "It is for whoever of my Ummah acts upon it."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17553