The Prophet of Allah ﷺ said, "Whoever castrates his slave, we will castrate him, and whoever cuts off his slave's limb, we will cut off his." The wording is that of Ibn Bashshar.
أخبرنا محمد بن المثنى ومحمد بن بشار قالا حدثنا معاذ بن هشام قال حدثني أبي عن قتادة عن الحسن
أن نبي الله ﷺ قال من خصى عبده خصيناه ومن جدع عبده جدعناه واللفظ لابن بشار
[Hasan], previously mentioned, no. 4740, and it is in Al-Kubra, no. 6956.