Sahih al-Bukhari 5065
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يَا مَعْشَرَ الشَّبَابِ مَنِ اسْتَطَاعَ مِنْكُمُ الْبَاءَةَ فَلْيَتَزَوَّجْ، وَمَنْ لَمْ يَسْتَطِعْ فَعَلَيْهِ بِالصَّوْمِ فَإِنَّهُ لَهُ وِجَاءٌ "
Narrated 'Alqama:
While I was with `Abdullah, `Uthman met him at Mina and said, "O Abu `Abdur-Rahman! I have something to say to you." So both of them went aside and `Uthman said, "O Abu `Abdur Rahman! Shall we marry you to a virgin who will make you remember your past days?" When `Abdullah felt that he was not in need of that, he beckoned me (to join him) saying, "O 'Alqama!" Then I heard him saying (in reply to `Uthman), "As you have said that, (I tell you that) the Prophet (ﷺ) once said to us, 'O young people! Whoever among you is able to marry, should marry, and whoever is not able to marry, is recommended to fast, as fasting diminishes his sexual power.
Full reference and source
Sahih al-Bukhari 5065 In-book : Book 67, Hadith 3 USC-MSA web (English) : Vol. 7, Book 62, Hadith 3 (deprecated)
View source on Sunnah.com (opens in a new tab)