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 Messenger of Allah ﷺ! Shall we get castrated?" The Prophet ﷺ forbade us to do so. (Using translation from Bukhārī 5071)
كُنَّا نَغْزُو مَعَ رَسُولِ اللهِ ﷺ لَيْسَ لَنَا نِسَاءٌ فَقُلْنَا يَا رَسُولَ اللهِ أَلَا نَسْتَخْصِي؟ فَنَهَانَا عَنْ ذَلِكَ