Islam teaches that people are created male or female, and that human beings have dignity regardless of their struggles, so any answer should combine compassion with the rulings of the texts.
- The classical books discuss the intersex (khuntha) and effeminate men (mukhannathun) but do not address gender dysphoria as a modern medical condition.
- Contemporary fatwas, such as those of al-Azhar in the 1980s and the Islamic Fiqh Council of the Muslim World League, allow medical correction for intersex conditions but hold sex change surgery without a physical basis to be unlawful, while a few scholars and Shi'i authorities such as Ayatollah Khomeini allowed it in some cases.
- The Prophet (saw) cursed men who imitate women and women who imitate men (Sahih al-Bukhari), and scholars discuss whether this concerns deliberate imitation or something else.
- All scholars agree that a person facing this struggle should be treated with respect, helped with care and never mocked (49:11).
Introduction
The question asks what Islam says about transgender people. This is a sensitive subject, so the answer begins with terms. 'Transgender' is used for a person whose sense of gender identity differs from the sex recorded at birth. Medical language speaks of gender dysphoria, the distress that can come from the difference. Intersex is a different matter: it describes people born with physical features of both sexes, or with unclear features, and the classical jurists discussed this at length.
The Islamic sources were not written to answer the modern question, so the scholars apply principles from the texts. The following sets out the main positions and what they are based on, without attacking or approving any person.
The foundations: creation and dignity
The Qur'an states that Allah created humans in pairs: "And that He created the two mates, the male and the female" (53:45). It also says that every human being is honoured:
وَلَقَدْ كَرَّمْنَا بَنِي آدَمَ
"And We have certainly honoured the children of Adam." (17:70)
A believer is told not to mock others: "Let not a people ridicule another people" (49:11), and the Prophet (saw) said that Allah does not look at one's forms or wealth but at hearts and deeds (Sahih Muslim). The Qur'an states that Allah does not burden a soul beyond its capacity (2:286), which scholars cite when discussing people with hard struggles. Such a person is a Muslim with duties and rights like every other.
The intersex (khuntha) in classical law
The books of fiqh have detailed rulings for the khuntha, a person whose sex is unclear, covering inheritance, prayer rows, dress and marriage. The jurists ruled that where signs make the sex clear, such as the way the person urinates or the signs at puberty, the person is treated as that sex. This is mentioned by Ibn Qudama in al-Mughni and by al-Nawawi in al-Majmu'. Modern scholars hold that surgery or hormone treatment to correct a physical condition of this kind is permitted, as it is a treatment for a recognised medical condition, and Muslim doctors are involved in decisions of this kind.
The mukhannath and the hadith on imitation
Ibn 'Abbas (ra) reported: "The Messenger of Allah (saw) cursed the men who imitate women and the women who imitate men" (Sahih al-Bukhari, Book of Dress). Sahih al-Bukhari also reports that the Prophet (saw) ordered the mukhannathun to be removed from the houses, and that he expelled certain individuals, because they had been present in the women's quarters and described women's bodies to men. Scholars such as Ibn Hajar, in Fath al-Bari, explain that there were two types: those who were born with soft manners and have no desire to cause harm, who were not blamed, and those who adopted the manner on purpose, who were. The ruling is therefore about deliberate imitation and about behaviour, not about a person's temperament.
Al-Nawawi in Sharh Sahih Muslim makes the same distinction, saying that natural softness is not blameworthy, while one who makes himself so deliberately is. The Prophet (saw) also did not punish those he knew as mukhannathun who lived in Madinah quietly.
Contemporary fatwas on gender transition
The modern questions are whether medical or surgical transition is lawful. The majority of Sunni fatwa bodies say it is not, if the person has no physical condition of intersex. In 1988 Jad al-Haqq Ali Jad al-Haqq, then the Shaykh of al-Azhar, issued a widely cited fatwa saying that a person with an unclear physical condition may be treated, but a person with normal organs who wishes to change sex may not, because this is a change in Allah's creation, a reference to the Qur'an's account of Satan's promise to command them to change Allah's creation (4:119). The Islamic Fiqh Council of the Muslim World League and the Saudi Permanent Committee have given similar rulings.
There is a minority of scholars who allow treatment in some cases after medical evaluation. In Iran, Ayatollah Khomeini issued a ruling in the 1980s allowing sex reassignment surgery when it is a matter of a person's condition, and the Shi'i authority in Iran continues to permit it. Some Egyptian scholars, among them the later Shaykh of al-Azhar Muhammad Sayyid Tantawi, are reported to have allowed surgery where a medical committee confirms that the cause is a physical disorder, and not only a wish. The differences among scholars therefore concern what counts as a medical condition and whether the person's health is advanced by treatment.
On how Muslims should treat people, the guidance is stable: no mockery, no harassment, no violence, and help with real needs such as mental health care, education and work. The Prophet (saw) taught that the Muslim is the one from whose hand and tongue people are safe (Sahih al-Bukhari and Sahih Muslim). Muslim counsellors and scholars generally advise that people in this situation need support and not rejection, and that sin is judged by Allah, who knows hearts and ability.
Practical guidance for families and communities
Many Muslim families and imams meet this subject in real life, so the guidance matters beyond the debate over rulings. A parent whose child is struggling should first seek medical and psychological help from a professional who respects the family's faith, and should avoid hasty steps in either direction. The Prophet (saw) said: "Whoever is not merciful to others will not be shown mercy" (Sahih al-Bukhari and Sahih Muslim). Muslim mental health organisations, and some imams trained in counselling, work with families on these cases, and the aim is for the person to remain part of the community, to keep praying, and to keep the door to Allah open.
Scholars who give fatwas stress two points together. One is that a hard struggle with identity is not itself a sin, since sin lies in acts and not in feelings that come unbidden. The other is that the answer of a mufti should be given with knowledge of the real case, including the medical facts, because the same words can describe very different situations, such as intersex conditions, gender dysphoria, and cross-dressing for other reasons, and the ruling differs in each.
Conclusion
Islam holds that people are created male or female and that every person deserves dignity, and the scholars permit correction of true intersex conditions while most forbid transition without a physical cause, with a minority taking a different view. Compassion and good conduct toward every person are required. Allah knows best.
References
Qur'an: 2:286; 4:119; 17:70; 49:11; 53:45.
Sahih al-Bukhari, Book of Dress (cursing men who imitate women); Sahih al-Bukhari and Sahih Muslim (the Muslim from whose hand people are safe); Sahih Muslim (Allah looks at hearts).
Ibn Hajar, Fath al-Bari; al-Nawawi, Sharh Sahih Muslim and al-Majmu'; Ibn Qudama, al-Mughni.
Fatwa of Jad al-Haqq Ali Jad al-Haqq (1988); resolutions of the Islamic Fiqh Council of the Muslim World League.