It was narrated from Salamah bin Rawh bin Zinba', that :
his grandfather came to the Prophet (ﷺ) and he had castrated a slave of his. The Prophet (ﷺ) manumitted the slave in compensation for having been mutilated.
English reference: Vol. 3, Book 21, Hadith 2679
Arabic reference: Book 21, Hadith 2781
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.