Abdullah bin Masud reported,

We were with the Prophet ﷺ when he said, "Whoever among you can afford marriage should marry, for it lowers the gaze and guards chastity. Whoever cannot, let him fast, for fasting will be a shield for him."

Bukhari 1905

Sahih

حدثنا عبدان عن أبي حمزة عن الأعمش عن إبراهيم عن علقمة قال بينا أنا أمشي مع

عبد الله رضي الله عنه فقال

كنا مع النبي ﷺ فقال من استطاع الباءة فليتزوج فإنه أغض للبصر وأحصن للفرج ومن لم يستطع فعليه بالصوم فإنه له وجاء

البخاري 1905صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Fasting
Chapter
Fasting for one who fears celibacy for himself
Numbering
Darussalam 1905
Bukhari 1905