Sahih Muslim | Book 8 | Chapter 2

Narrated by Jabir
Jabir reported that Allah's Messenger (may peace be upon him) saw a woman, and so he came to his wife, Zainab, as she was tanning a leather and had sexual intercourse with her. He then went to his Companions and told them: The woman advances and retires in the shape of a devil, so when one of you sees a woman, he should come to his wife, for that will repel what he feels in his heart.

Narrated by Jabir b. 'Abdullah
Jabir b. 'Abdullah reported that Allah's Apostle (may peace be upon him) saw a woman; and the rest of the hadith was narrated but (with this exception) that he said he came to his wife Zainab, who was tanning a (piece of) leather, and he made no mention of: "She retires in the shape of satan.

Narrated by Jabir
Jabir heard Allah's Apostle (may peace be upon him) say: When a woman fascinates any one of you and she captivates his heart, he should go to his wife and have an intercourse with her, for it would repel what he feels.