Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:2679Abū Bakr b. Abū Shaybah > Isḥāq b. Manṣūr > ʿAbd al-Salām > Isḥāq b. ʿAbdullāh b. Abū Farwah > Salamah b. Rawḥ b. Zinbāʿ from his father

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.  

ابن ماجة:٢٦٧٩حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ قَالَ حَدَّثَنَا عَبْدُ السَّلاَمِ عَنْ إِسْحَاقَ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي فَرْوَةَ عَنْ سَلَمَةَ بْنِ رَوْحِ بْنِ زِنْبَاعٍ عَنْ جَدِّهِ

أَنَّهُ قَدِمَ عَلَى النَّبِيِّ ﷺ وَقَدْ خَصَى غُلاَمًا لَهُ فَأَعْتَقَهُ النَّبِيُّ ﷺ بِالْمُثْلَةِ