Islam, unlike other religions, is a strong advocate of marriage. There is no place in Islam for celibacy practiced by the Roman Catholic priests and nuns. The Prophet (peace and blessings be upon him) is reported to have said : “There is no celibacy in Islam.”
Marriage is a religious duty and is consequently a moral safeguard as well as a social necessity. The Prophet (peace and blessings be upon him) is also reported to have said: “Marriage is my tradition, and whosoever keeps away therefrom is not from amongst me”.
Marriage acts as an outlet for sexual needs and it regulates that natural instinct so one does not become a slave to his/ her desires.
However, the person who has no means to marry is required to observe supererogatory fasting, if he has an urging sexual desire. This is stated clearly in one of the Prophetic Hadiths.
In no circumstances it is allowed for a Muslim, who experiences a pressing sexual need to resort to castration, which is a forbidden act by Islam. There are other lawful Islamic alternatives to resort to, why castration in particular?!
Shedding more light on how Islam views castration of male sex organs, Sheikh `Atiyyah Saqr, former head of Al-Azhar Fatwa Committee, in which he states the following: “Allah Almighty has created males and females and given each of them the ability, through sexual intercourse, to procreate in order to populate the earth. Sterilization means rendering either the male or the female unable to produce children and fulfil this function.
A long time ago, men used to undergo castration. Nowadays, they have a vasectomy, which means, according to the American Heritage Dictionary of English Language, Surgical removal of all or part of the vas deferens, usually as a means of sterilization
In addition, such acts can cause some changes in the natural qualifications of either sex, so that there can be alteration in one’s voice, feelings, etc., and this can be reflected in one’s behavior.
Castration is not permissible. The Prophet (peace and blessings be upon him) is reported to have prohibited castration when a man who could not afford to get married sought his permission to undergo such operation, for he wanted to protect himself from committing fornication.
Also, in a Hadith narrated by Imam Ahmed, the Prophet (peace and blessings be upon him) forbade Muslim fighters, who left their wives at home, from getting castrated.
The Prophet (peace and blessings be upon him) says to a man who asked his permission to be emasculated: “Instead of castration, you can observe fasting and prayer (as a kind of protection against unlawful actions).” (Reported by At-Tabarani and Ahmed).”