It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever has the means should marry; otherwise he should fast, for fasting is a shield (curbing desire) for him."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10130