The Messenger of Allah ﷺ was sitting among his companions when he went inside and then came out, having performed a full bath. We said, "Messenger of Allah, has something happened?"He replied, "Yes. Such-and-such woman passed by me, and desire for women stirred in my heart, so I went to one of my wives and was intimate with her. This is what you should do, for among the most excellent of your deeds is intimacy with what is lawful."
حدثنا عبد الرحمن بن مهدي عن معاوية يعني ابن صالح عن أزهر بن سعيد الحرازي قال سمعت
كان رسول الله ﷺ جالسا في أصحابه فدخل ثم خرج وقد اغتسل فقلنا يا رسول الله قد كان شيء قال أجل مرت بي فلانة فوقع في قلبي شهوة النساء فأتيت بعض أزواجي فأصبتها فكذلك فافعلوا فإنه من أماثل أعمالكم إتيان الحلال