Jabir heard Allah's Apostle (ﷺ) 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.
Hadith ReferenceSahih Muslim / The Book of Marriage / Hadith: 1403