Anas bin Malik reported,

A man was suspected of having an illicit relationship with a slave woman who had borne a child to the Messenger of Allah ﷺ. The Messenger of Allah ﷺ said to Ali, "Go and strike off his neck."Ali went to him and found him in a well, cooling himself. Ali said to him, "Come out." The man extended his hand to him, and Ali pulled him out, only to find that he was castrated and had no male organ. So Ali held back from him.Then he came to the Prophet ﷺ and said, "Messenger of Allah, he is castrated and has no male organ."

Azami 10421

Sahih

عن أنس

أن رجلا كان يتهم بأم ولد رسول الله ﷺ فقال رسول الله ﷺ لعلي: اذهب فاضرب عنقه. فأتاه علي فإذا هو في ركي يتبرد فيها، فقال له علي: اخرج، فناوله يده، فأخرجه فإذا هو مجبوب ليس له ذكر، فكف علي عنه، ثم أتى النبي ﷺ فقال: يا رسول الله، إنه لمجبوب ما له ذكر.

الأعظمي 10421صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtues of the women Companions, virtues of the women of the household of Prophethood
Section
Mariya, reports about her
Numbering
Jami al-Kamil 10421 (2nd edition)
Azami 10421