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.
hakim:6824ʿAlī b. Ḥamshādh al-ʿAdl > al-Ḥusayn b. al-Faḍl al-Bajalī And Muḥammad b. Ghālib al-Ḍabbī Wahishām b. ʿAlī al-Sadūsī > ʿAffān > Ḥammād b. Salamah > Thābit > Anas

Go and strike his neck. 'Ali came to him and he found him in a well making his body cool. 'Ali said to him: Come out, and as he took hold of his hand and brought him out, he found that his sexual organ had been cut. Hadrat 'Ali refrained from striking his neck. He came to Allah's Apostle ﷺ and said: Messenger of Allah, he has not even the sexual organ with him. (Using translation from Muslim 2771)   

الحاكم:٦٨٢٤حَدَّثَنَاهُ عَلِيُّ بْنُ حَمْشَاذٍ الْعَدْلُ ثَنَا الْحُسَيْنُ بْنُ الْفَضْلِ الْبَجَلِيُّ وَمُحَمَّدُ بْنُ غَالِبٍ الضَّبِّيُّ وَهِشَامُ بْنُ عَلِيٍّ السَّدُوسِيُّ قَالُوا ثَنَا عَفَّانُ ثَنَا حَمَّادُ بْنُ سَلَمَةَ ثَنَا ثَابِتٌ عَنْ أَنَسٍ

أَنَّ رَجُلًا كَانَ يُتَّهَمُ بِأُمِّ إِبْرَاهِيمَ وَلَدِ رَسُولِ اللَّهِ ﷺ فَقَالَ رَسُولُ اللَّهِ ﷺ لِعَلِيٍّ «اذْهَبْ فَاضْرِبْ عُنُقَهُ» فَأَتَاهُ عَلِيٌّ فَإِذَا هُوَ فِي رَكِيٍّ يَتَبَرَّدُ فِيهَا فَقَالَ لَهُ عَلِيٌّ اخْرُجْ فَنَاوَلَهُ يَدَهُ فَأَخْرَجَهُ فَإِذَا هُوَ مَجْبُوبٌ لَيْسَ لَهُ ذَكَرٌ  

«هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ مُسْلِمٍ وَلَمْ يُخَرِّجَاهُ» سكت عنه الذهبي في التلخيص

See similar narrations below:

Collected by Muslim, Aḥmad
muslim:2771Zuhayr b. Ḥarb > ʿAffān > Ḥammād b. Salamah > Thābit > Anas

Go and strike his neck. 'Ali came to him and he found him in a well making his body cool. 'Ali said to him: Come out, and as he took hold of his hand and brought him out, he found that his sexual organ had been cut. Hadrat 'Ali refrained from striking his neck. He came to Allah's Apostle ﷺ and said: Messenger of Allah, he has not even the sexual organ with him.  

مسلم:٢٧٧١حَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ حَدَّثَنَا عَفَّانُ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ أَخْبَرَنَا ثَابِتٌ عَنْ أَنَسٍ

أَنَّ رَجُلاً كَانَ يُتَّهَمُ بِأُمِّ وَلَدِ رَسُولِ اللَّهِ ﷺ فَقَالَ رَسُولُ اللَّهِ ﷺ لِعَلِيٍّ اذْهَبْ فَاضْرِبْ عُنُقَهُ فَأَتَاهُ عَلِيٌّ فَإِذَا هُوَ فِي رَكِيٍّ يَتَبَرَّدُ فِيهَا فَقَالَ لَهُ عَلِيٌّ اخْرُجْ فَنَاوَلَهُ يَدَهُ فَأَخْرَجَهُ فَإِذَا هُوَ مَجْبُوبٌ لَيْسَ لَهُ ذَكَرٌ فَكَفَّ عَلِيٌّ عَنْهُ ثُمَّ أَتَى النَّبِيَّ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنَّهُ لَمَجْبُوبٌ مَا لَهُ ذَكَرٌ  

ahmad:13989ʿAffān > Ḥammād > Thābit > Anas

[Machine] A man was accused of a woman, so the Prophet ﷺ sent Ali to kill him. Ali found him in a cave cooling himself. Ali said to him, "Give me your hand." He gave him his hand and he found him castrated. Ali then went to the Messenger of Allah ﷺ and informed him. He said, "By Allah, O Messenger of Allah, he is castrated and has no male organ."  

أحمد:١٣٩٨٩حَدَّثَنَا عَفَّانُ حَدَّثَنَا حَمَّادٌ عَنْ ثَابِتٍ عَنْ أَنَسٍ

أَنَّ رَجُلًا كَانَ يُتَّهَمُ بِامْرَأَةٍ فَبَعَثَ النَّبِيُّ ﷺ عَلِيًّا لِيَقْتُلَهُ فَوَجَدَهُ فِي رَكِيَّةٍ يَتَبَرَّدُ فِيهَا فَقَالَ لَهُ نَاوِلْنِي يَدَكَ فَنَاوَلَهُ يَدَهُ فَإِذَا هُوَ مَجْبُوبٌ لَيْسَ لَهُ ذَكَرٌ فَأَتَى رَسُولَ اللهِ ﷺ فَأَخْبَرَهُ فَقَالَ وَاللهِ يَا رَسُولَ اللهِ إِنَّهُ لَمَجْبُوبٌ مَا لَهُ مِنْ ذَكَرٍ