Bulugh al-Maram 974
عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ - رضي الله عنه - قَالَ لَنَا رَسُولُ اللَّهِ - صلى الله عليه وسلم: «يَا مَعْشَرَ الشَّبَابِ! مَنِ اسْتَطَاعَ مِنْكُمُ الْبَاءَةَ فَلْيَتَزَوَّجْ, فَإِنَّهُ أَغَضُّ لِلْبَصَرِ, وَأَحْصَنُ لِلْفَرْجِ, وَمَنْ لَمْ يَسْتَطِعْ فَعَلَيْهِ بِالصَّوْمِ; فَإِنَّهُ لَهُ وِجَاءٌ». مُتَّفَقٌ عَلَيْهِ.
From ʿAbdullah ibn Masʿud, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said to us: "O young men! Whoever among you is able to marry, let him marry, for it lowers the gaze more and guards the private parts more. And whoever is not able, let him fast, for it will be a shield for him." Agreed upon.