Sahih al-Bukhari 5076
Book 67: Wedlock, Marriage (Nikaah) · Hadith 14
Hadith text
Narrated Abu Huraira: I said, "O Allah's Messenger (ﷺ)! I am a young man and I am afraid that I may commit illegal sexual intercourse and I cannot afford to marry." He kept silent, and then repeated my question once again, but he kept silent. I said the same (for the third time) and he remained silent. Then repeated my question (for the fourth time), and only then the Prophet said, "O Abu Huraira! The pen has dried after writing what you are going to confront. So (it does not matter whether you) get yourself castrated or not
Abu Huraira bataate hain: Maine kaha, 'Aye Allah ke Rasool! Main ek jawaan aadmi hoon aur mujhe dar hai ke kahin main zina na kar baithoon, aur mujhme nikaah karne ki hasiyat nahi hai.' Wo khaamosh rahe, phir maine apna sawaal dobara dohraaya, magar wo phir khaamosh rahe. Maine phir wahi kaha (teesri baar) aur wo khaamosh rahe. Phir maine apna sawaal (chauthi baar) dohraaya, tab jaakar Nabi (SAW) ne farmaya, 'Aye Abu Huraira! Qalam sukh chuka hai jo kuch tumhaare saath hone wala hai use likhne ke baad. To (isse koi farq nahi padta ke tum) khud ko khassi karaao ya na karaao.'
Sahih al-Bukhari 5076 · Book 67, Hadith 14