Sahih Bukhari – Hadith No : 5127

Narrated Ibn Masud: We used to fight in the holy battles in the company of the Prophet and we had no wives with us. So we said, “O Allah’s Apostle! Shall we get castrated?” The Prophet forbade us to do so.

Hadith In Arabic Text :

حدثنا محمد بن المثنى، حدثنا يحيى، حدثنا إسماعيل، قال حدثني قيس، عن ابن مسعود رضى الله عنه قال كنا نغزو مع النبي صلى الله عليه وسلم وليس لنا نساء فقلنا يا رسول الله ألا نستخصي فنهانا عن ذلك‏.‏

Chapter : Wedlock; Marriage (Nikaah) – كتاب النكاح