Musnad Ahmad 411
Grading supplied with this record: Sahih hadeeth]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that ‘Alqamah said: I was with Ibn Mas"ood when he was with ‘Uthman {رضي الله عنه}. "Uthman (رضي الله عنه) said to him:
Do you still feel any desire towards women? When women were mentioned, Ibn Mas"ood said: Come closer, ‘Alqamah. I was a young man (at that time). "Uthman (رضي الله عنه) said to him: The Messenger of Allah (ﷺ) came out to some young men of the Muhajireen and said: “Whoever among you has the means to get married, let him do so, for it is more effective in lowering the gaze and guarding chastity, whoever cannot (do that), then fasting is a shield for him."
Full reference and source
Musnad Ahmad 411 Arabic/English book : Book 4, Hadith 411
View source on Sunnah.com (opens in a new tab)