It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that it was said to the Prophet (peace and blessings be upon him): "Do you permit us to castrate ourselves?" He (peace and blessings be upon him) said: "No, the castration of my Ummah is prayer and fasting."
I say that its narrator Abd al-Rahman bin Ziyad bin An'um al-Ifriqi is da'if (weak).
Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) narrates that a man came to the Prophet (peace and blessings be upon him) and said: "O Messenger of Allah (peace and blessings be upon him)! Permit me to castrate myself." The Messenger of Allah (peace and blessings be upon him) said: "The castration of my Ummah is fasting and standing (in prayer)."
This chain contains Abdullah bin Lahi'ah, and he is da'if (weak).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الصلاة / 776
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«هذا إسناد فيه عبد الله بن لهيعة، وهو ضعيف» «أخرجه مسند أحمد برقم: 6575، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 4480»