The Prophet (ﷺ) prevented `Uthman bin Mazun from that (not marrying), and had he allowed him, we would have got ourselves castrated.
Sahih al-Bukhari Book 67, Hadith 12