The Book of Marriage (Kitab Al-Nikah)

Muslim :: Book 8 : Hadith 3233

Abdullah (b. Mas'ud) (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) said to us: 0 young men, those among you who can support a wife should marry, for it restrains eyes (from casting evil glances) and preserves one from immorality; but he who cannot afford It should observe fast for it is a means of controlling the sexual desire.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star