It was narrated that 'Abdullah said: "The Messenger of Allah said to us: 'O young men, whoever among you can afford it, let him get married, for it is more effective in lowering the gaze and guarding chastity, and whoever cannot then he should fast, for it will be a restraint (wija') for him.'" (Using translation from Nasāʾī 3209)
قَالَ لَنَا رَسُولُ اللهِ ﷺ «يَا مَعْشَرَ الشَّبَابِ مَنِ اسْتَطَاعَ مِنْكُمُ الْبَاءَةَ فَلْيَتَزَوَّجْ فَإِنَّهُ أَغَضُّ لِلْبَصَرِ وَأَحْصَنُ لِلْفَرْجِ وَمَنْ لَا فَلْيَصُمْ فَإِنَّ الصَّوْمَ لَهُ وِجَاءٌ»