Maria al-Qibtiyya RA came to Madinah as a gift to the Prophet ﷺ from the ruler of Egypt. With her came a servant named Ma'boor, who by some reports was a distant relative of hers. Before Maria had embraced Islam, rumours began to spread that Ma'boor was "visiting" her.
According to a hadith in Sahih Muslim, the Prophet ﷺ told Ali ibn Abi Talib RA to take his sword and find Ma'boor. Matters touching the Prophet ﷺ's own household were usually given to Ali RA, who was himself of the household (Ahl al-Bayt). Ali RA asked whether he should go simply to carry out the order, or as someone who would see and hear for himself what was going on. The Prophet ﷺ said, "No; go as somebody who hears and sees." So Ali RA went to investigate.
He found Ma'boor in a date grove. When Ma'boor saw Ali coming, he was terrified, and his private parts became exposed. One report says he fell while trying to climb a tree, and another says he exposed himself on purpose. Either way, it was plain that he had been castrated. This was sometimes done to slaves before Islam, which later forbade mutilating any slave or any human being. The rumours clearly could not be true. Ali RA returned and told the Prophet ﷺ.