[Machine] Abu Kabsha, companion of the Messenger of Allah ﷺ , said: While the Messenger of Allah ﷺ was sitting, a woman passed by him, so he stood up and went to his family. The Messenger of Allah ﷺ came to us with sweat dripping from him, so we said, "O Messenger of Allah, it seems like something has happened." He said, "Yes, a certain woman passed by me and desire for women occurred in my heart, so I went to one of my wives and did the same. So you should do likewise, for engaging in lawful relations is part of your deeds."
عَنْ أَبِي كَبْشَةَ صَاحِبِ رَسُولِ اللهِ ﷺ قَالَ بَيْنَمَا رَسُولُ اللهِ ﷺ جَالِسٌ إِذْ مَرَّتْ بِهِ امْرَأَةٌ فَقَامَ إِلَى أَهْلِهِ فَخَرَجَ إِلَيْنَا رَسُولُ اللهِ ﷺ يَقْطُرُ فَقُلْنَا يَا رَسُولَ اللهِ كَأَنَّهُ قَدْ كَانَ شَيْءٌ فَقَالَ «نَعَمْ مَرَّتْ بِي فُلَانَةُ فَوَقَعَ فِي نَفْسِي شَهْوَةُ النِّسَاءِ فَقُمْتُ إِلَى بَعْضِ أَهْلِي وَكَذَلِكَ فَافْعَلُوا فَإِنَّهُ مِنْ أَمَاثِلِ أَعْمَالِكُمْ إِتْيَانُ الْحَلَالِ»