'Abdallah b. Mas'ud reported God’s Messenger as saying, “Young man, those of you who can support a wife should marry, for it keeps you from looking at strange women and preserves you from immorality; but those who cannot should devote themselves to fasting, for it is a means of suppressing sexual desire.”*
(Bukhari and Muslim.)
* Waja' has been translated freely above. It means castration.