A man came to the Prophet ﷺ and said, "Messenger of Allah, what do you say about a man who meets a woman without any prior acquaintance between them, and he does with her everything a man does with his wife except that he did not have intercourse with her?"Then Allah revealed, "And establish prayer at the two ends of the day and at the approach of the night. Indeed, good deeds drive away bad deeds. That is a reminder for those who remember." [Hud 11:114]So he ordered him to perform ablution and pray.Muaz said, "I asked, 'Messenger of Allah, is this for him alone or for the believers in general?'"He replied, "Rather, it is for the believers in general."
حدثنا عبد بن حميد حدثنا حسين بن علي الجعفي عن زائدة عن عبد الملك بن عمير عن عبد الرحمن بن أبي ليلى
أتى النبي ﷺ رجل فقال يا رسول الله أرأيت رجلا لقي امرأة وليس بينهما معرفة فليس يأتي الرجل شيئا إلى امرأته إلا قد أتى هو إليها إلا أنه لم يجامعها قال فأنزل الله {وأقم الصلاة طرفي النهار وزلفا من الليل إن الحسنات يذهبن السيئات ذلك ذكرى للذاكرين} فأمره أن يتوضأ ويصلي قال معاذ فقلت يا رسول الله أهي له خاصة أم للمؤمنين عامة قال بل للمؤمنين عامة