Anas bin Malik reported,

The Prophet ﷺ came out to some young men of Quraysh and said, "Young men, whoever among you can afford it should marry. Whoever cannot should fast, for fasting will be a shield for him."

Azami 6185

Sahih

عن أنس

أن النبي ﷺ خرج على فتية من شباب قريش، فقال: يا معشر الشباب من استطاع منكم الطول فلينكح، أو فليتزوج، وإلا فعليه بالصوم، فإنه له وجاء.

الأعظمي 6185صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Marriage and its conditions
Section
Encouragement of youth to marry and the dislike of celibacy and castration
Numbering
Jami al-Kamil 6185 (2nd edition)
Azami 6185