The Messenger of Allah ﷺ said, "Whoever is mutilated or burned with fire is free, and he is the freedman of Allah and His Messenger."Then a castrated man named Sandar was brought before him, and he set him free. After the death of the Messenger of Allah ﷺ, Sandar came to Abu Bakr, who treated him well. Then he came to Umar after Abu Bakr, who also treated him well. Later he wished to travel to Egypt, so Umar wrote on his behalf to Amr bin As, instructing him to treat him well, or to honor the bequest of the Messenger of Allah ﷺ concerning him.
حدثنا معمر بن سليمان الرقي حدثنا الحجاج
عن رسول الله ﷺ قال من مثل به أو حرق بالنار فهو حر وهو مولى الله ورسوله قال فأتي برجل قد خصي يقال له سندر فأعتقه ثم أتى أبا بكر بعد وفاة رسول الله ﷺ فصنع إليه خيرا ثم أتى عمر بعد أبي بكر فصنع إليه خيرا ثم إنه أراد أن يخرج إلى مصر فكتب له عمر إلى عمرو بن العاص أن اصنع به خيرا أو احفظ وصية رسول الله ﷺ فيه