Narrated Mu'adh bin Jabal:
"A man came to the Prophet (ﷺ) and said: 'O Messenger of Allah! What do you say about a man who meets a woman and there is no acquaintance between them. So there is nothing that a man who would do with his wife but he does it with her, except that he does not have intercourse with her?'" He said: "So Allah revealed: And perform the Salat, 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 for the mindful (11:114). So he ordered him to perform Wudu and Salat." Then Mu'adh said: "I said: 'O Messenger of Allah! Is that specifically for him, or for the believers in general?' He said: 'Rather it is for the believers in general.'" (ES)
English reference (ES): Vol. 5, Book 44, Hadith 3113 (ES)
Arabic reference (ES): Book 47, Hadith 3401 (ES)