The Prophet ﷺ saw a woman, so he went to his wife Zaynab while she was tanning a hide. He fulfilled his need with her, then went out to his companions and said, "A woman approaches in the form of a devil and turns away in the form of a devil. So when one of you sees a woman, let him go to his wife, for that will repel what is in his heart."
أن النبي ﷺ رأى امرأة فأتى امرأته زينب، وهي تمعس منيئة لها. فقضى حاجته، ثم خرج إلى أصحابه فقال: إن المرأة تقبل في صورة شيطان، وتدبر في صورة شيطان، فإذا أبصر أحدكم امرأة فليأت أهله، فإن ذلك يرد ما في نفسه.
Muslim reported it in the Book of Marriage (1403) from Amr bin Ali, who said, Abdul-Ala narrated to us, Hisham bin Abu Abdullah narrated to us, from Abu Zubayr, from Jabir, and he mentioned it.In another narration, "Let him go to his wife and have intercourse with her, for that will dispel what is in his mind." As for his saying, "kneading a hide of hers," al-mas means rubbing, and al-manea refers to the initial stage of tanning a hide.