Jami` at-Tirmidhi, Book 12, Hadith 13 (Tirmidhi 1161)

Jabir (bin Abdullah) narrated:

“The Prophet saw a woman, then he went to Zainab to fulfill his need and he left. He said: ‘Indeed when the woman enters, she enters in the image of Shaitan. So when one of you sees a woman that he is fascinated with, then let him go to his wife, for indeed with her (his wife) is the same as that which is with her.”