Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) said: A man came to the Prophet (peace and blessings be upon him) and said: O Messenger of Allah! What do you say about a man who met a woman he did not know, and did everything with her that a man does with a woman, except that he did not have intercourse with her? So Allah, the Mighty and Majestic, revealed this verse: "And establish the prayer at the two ends of the day and in some hours of the night. Indeed, good deeds wipe out evil deeds. That is a reminder for those who take heed" [Hud: 114]. The Prophet (peace and blessings be upon him) said to him: "Perform ablution, then pray." Mu'adh (may Allah be pleased with him) said: I said: O Messenger of Allah! Is this specifically for him alone, or for the believers in general? He (peace and blessings be upon him) said three times: "Rather, it is for the believers in general."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17413