It wasnarrated from 'Abdullah bin Mas'ud that a man did somethingwitha woman that was less than adultery; I do not know how far itwent,but it was less than adultery. He went to the Prophet (ﷺ) andtoldhim about that. Then Allah revealed the words:
"And perform theprayer, at the two ends of the day and in some hours of the night.Verily, the good deeds remove the evil deeds. That is a reminder forthe mindful." [11:114] He said: "O Messenger of Allah, is thisonlyfor me?" He said: "It is for everyone who acts upon it."
English reference: Vol. 1, Book 5, Hadith 1398
Arabic reference: Book 5, Hadith 1462