كتاب النكاح
Read the English translation first, with the original Arabic directly underneath.
Narrated 'Abdullah:
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.'"
يَا مَعْشَرَ الشَّبَابِ مَنِ اسْتَطَاعَ مِنْكُمُ الْبَاءَةَ فَلْيَنْكِحْ فَإِنَّهُ أَغَضُّ لِلْبَصَرِ وَأَحْصَنُ لِلْفَرْجِ وَمَنْ لاَ فَلْيَصُمْ فَإِنَّ الصَّوْمَ لَهُ وِجَاءٌ