The Prophet ﷺ saw a woman, so he went in to Zaynab, fulfilled his need with her, and then came out and said, "When a woman approaches, she approaches in the form of a devil. So if one of you sees a woman and she pleases him, let him go to his wife, for she has the same as what the other has."
حدثنا محمد بن بشار حدثنا عبد الأعلى حدثنا هشام بن أبي عبد الله هو الدستوائي عن أبي الزبير
أن النبي ﷺ رأى امرأة فدخل على زينب فقضى حاجته وخرج وقال إن المرأة إذا أقبلت أقبلت في صورة شيطان فإذا رأى أحدكم امرأة فأعجبته فليأت أهله فإن معها مثل الذي معها
Muslim also narrated it in the Book of Marriage, chapter on the recommendation for one who sees a woman and she falls into his heart, etc., hadith no. 1403, from the hadith of Abdul-Ala, with the same wording. It has a corroborating narration in Ahmad, 4/231, from the hadith of Abu Kabsha Anmari. On this subject there is also a narration from Ibn Masud [Darimi, 2/146, hadith no. 2221].