Marriage is recommended for the one who desires it and can afford it, and the one who cannot afford it should distract himself by fasting Sahih Muslim 1400 e
Translation
'Abd al-Rahman b. Yazid reported on the authority of Abdullah
We went to him, and I was the youngest of all (of us), but he did not mention:" I lost no time in marrying."