# Sexuality in Islam

Part of a series on :
Islamic jurisprudence (fiqh) :
Ritual
Shahada
Salah
Raka'ah
Qibla
Turbah
Sunnah prayer (TarawihTahajjud)
Witr
Nafl prayer
Sawm
Zakat
Hajj
Ihram (clothing
Mut'ah)
Tawaf
Umrah (and Hajj) :
Political
Islamic leadership
Caliphate
Majlis-ash-Shura
Imamate
Wilayat al-faqih
Bay'ah
Dhimmi
Aman :
Family
Marriage
Contract
Mahr
Misyar
Halala
Urfi
Mut‘ah
Polygyny
Divorce
Khula
Zihar
Iddah
Kafa'ah
Adoption
Breastfeeding
Sexual
Awrah
Abortion
Baligh
Haya
Hygiene
Rape
Zina
Masturbation :
Criminal
Hudud
Blasphemy
Maisir  (gambling)
Zina  (illicit sex)
Hirabah  (unlawful warfare and banditry)
Fasad  ("mischief")
Mofsed-e-filarz  ("spreading corruption")
Fitna  ("sedition")
Rajm  (stoning)
Tazir  (discretionary)
Qisas  (retaliation)
Diya  (compensation) :
Etiquette
Adab
Gender segregation (Purdah)
Mahram
Honorifics
Toilet :
Economic
History
Zakat
Jizya
Nisab
Khums
Sadaqah (Waqf)
Bayt al-mal
Banking
Riba
Murabaha
Takaful
Sukuk
Inheritance :
Hygiene
Sexual
Toilet
Taharah
Ihram
Wudu
Masah
Ghusl
Tayammum
Miswak
Najis
Istinja
Dietary
Dhabihah
Alcohol
Pork
Comparison with kashrut :
Military
Jihad
Ghanimah
Hudna
Istijarah (asylum)
Prisoners of war :
Islamic studies :
vte :
Sexuality in Islam contains a wide range of views and laws, which are largely predicated on the Quran, and the sayings attributed to Muhammad (hadith) and the rulings of religious leaders (fatwa) confining sexual activity to marital relationships between men and women. Sexual jurisprudence (Arabic: الفقه الجنسي) and marital jurisprudence (Arabic: فقه النكاح) are the codifications of Islamic scholarly perspectives and rulings on sexuality, which both in turn also contain components of Islamic family jurisprudence, Islamic marital jurisprudence, hygienical, criminal and bioethical jurisprudence.
All instructions regarding sex in Islam are considered parts of, firstly, Taqwa or obedience and secondly, Iman or faithfulness to God. Sensitivity to gender difference and modesty outside of marriage can be seen in current prominent aspects of Muslim cultures, such as interpretations of Islamic dress and degrees of gender segregation. Islamic marital jurisprudence allows Muslim men to be married to multiple women (a practice known as polygyny).
The Quran and the hadiths allow only sex with married (nikāḥ) and "what the right hand owns". This historically permitted Muslim men to have extramarital sex with concubines and sex slaves. Contraceptive use is permitted for birth control. Acts of homosexual intercourse are prohibited, although Muhammad, the main prophet of Islam, never forbade non-sexual relationships.

## Legal prescriptions
### Modesty

Islam has strongly emphasized the concept of decency and modesty (haya) and chastity; besides the lawful sexuality, priority is given to modesty and chastity both inside and outside the marital relationships. The Quran warns against immoral lust (fahisha), and the hadith literature, modesty has been described as "a part of faith". Islam strictly discourages nudity and public nakedness, and it is also forbidden for spouses to spread the secrets of what happens between them in their private marital life.

### Education
#### Adult

Islam has a long tradition of pragmatism with respect to sex education, with sex being readily discussed and not subject or taboo as long as the topics under discussion were Islamically permissible. A hadith attributed to Muhammad's wife Aisha states that the Ansar women in particular were not shy about asking questions regarding sexual matters as long as they are halal. From as early as the 14th-century, entire manuscripts devoted to Islamic sexual education were being written in Arabic in Baghdad, which at that time was a great literary centre within the Muslim world.
The Perfumed Garden of Sensual Delight (Arabic: الروض العاطر في نزهة الخاطر) is a fifteenth-century Arabic Islamic sex manual and work of erotic literature by Muhammad ibn Muhammad al-Nefzawi, also known simply as "Nefzawi". The book presents opinions on what qualities men and women should have to be attractive and gives advice on sexual technique, warnings about sexual health, and recipes to remedy sexual maladies. It gives lists of names for the penis and vulva, and has a section on the interpretation of dreams. Interspersed with these there are a number of stories which are intended to give context and amusement.

#### Children

According to Abdullah Nasih Ulvan, sex education is not recommended until the approach of puberty, and children are expected to be taught the signs of this as well as the characteristics which distinguish men from women. Islamic tradition also encourages that sexual education be entwined with morality, explaining Islamic rules involving the covering the intimate parts of the body, ‘awrah, and the Islamic positions on modesty, chastity and avoiding promiscuity.

### Circumcision

Khitan or Khatna (Arabic: ختان, Arabic: ختنة) is the term for male circumcision carried out as a cultural rite by Muslims and is considered a sign of belonging to the wider Islamic community. Whether or not it should be carried out after converting to Islam is debated among Islamic scholars. The Quran does not mention circumcision, either explicitly or implicitly, in any verse, while some hadiths mention circumcision in a list of practices known as fitra (acts considered to be of a refined person). However, different hadiths contradict on whether circumcision is part of fitra or not. According to some traditions Muhammad was born without a foreskin (aposthetic), while others maintain that his grandfather Abdul-Muttalib circumcised him when he was seven days old. Islamic sources that advocate for circumcision also do not fix a particular time for circumcision, which can depend on family, region and country. The preferred age is usually seven although some Muslims are circumcised as early as the seventh day after birth and as late as the commencement of puberty.

### Puberty

Bāligh or bulūgh (Arabic: بالغ or بُلوغ) refers to a person who has reached puberty or adulthood, and has full responsibility under Islamic law. In Islam, human life is divided into two parts, the first is before adolescence or childhood, when man is considered innocent, and the second is after adolescence (bulugiyat) or adulthood, when the Islamic law is fully applied to man and the hereafter is judged. If a person dies before he becomes an adult, he is considered to be in heaven.
The minimum age for puberty in boys is approximately 12 lunar years, and in the absence of symptoms, approximately 15 lunar years to maximum 18 lunar years, or may vary by geographical region; in the case of boys, the characteristics or signs of puberty, pubic hair growth and semen discharge (wet dreams). The minimum age of puberty for girls is approximately 9 lunar years and if no symptoms are found, it can be considered as approximately 15 lunar years to maximum 17 lunar years or 18 lunar years, or may vary by geographical region in case of girls. The characteristics or signs of puberty in girls are pubic hair, menstruation, wet dreams and the ability to conceive.
In issues pertaining to marriage, baligh refers to the legal expression hatta tutiqa'l-rijal, which means a wedding may not take place until a girl is physically fit for sexual intercourse. This can also, though not necessarily, coincide with the reaching of sexual maturity manifested by menses or nocturnal emission. Only after a separate condition called rushd, or intellectual maturity to handle one's own property, is reached can a wife receive her bridewealth.

#### Menstruation

The Qur'an makes specific mention of menstruation in Quran 2:222 that instructs Muslims to "keep aloof from the women during the menstrual discharge and do not go near them until they have become clean; then when they have cleansed themselves, go in to them as Allah has commanded you", language that is taken to clearly imply that sexual relations during menstruation are prohibited. Ibn Kathīr, a muhaddith, narrated a hadith that describes Muhammad's habits with his menstruating wives. This hadith demonstrates that Muhammad gave licence to all forms of spousal intimacy during the period of menstruation with the exception of vaginal intercourse. Women are required to perform ritual cleansing (ghusl) before resuming religious duties or sexual relations upon completion of their menstruation.
Sexual intercourse is also prohibited during menstruation, for forty days after childbirth (puerperium), during the daylight hours of the month of Ramadan (i.e. while fasting) and on pilgrimage. While in the sanctuary (in Ahram) at Mecca, pilgrims are not allowed to have intercourse, and marriages performed during the pilgrimage are invalid.

#### Nocturnal emissions

Nocturnal emission is not a sin in Islam. Moreover, whereas a person fasting (in Ramadan or otherwise) would normally be considered to have broken their fast by ejaculating on purpose (during either masturbation or intercourse), nocturnal emission is not such a cause. They are still required to bathe prior to undergoing some rituals in the religion. Muslim scholars consider ejaculation something that makes one temporarily ritually impure, a condition known as junub; meaning that a Muslim who has had an orgasm or ejaculated must have a ghusl.

### Legal relationships
#### Marriage

In Islam and Islamic law (sharia), marriage (nikāḥ نکاح) is a legal and social contract between two individuals that outlines the rights and responsibilities of the groom and bride. Polygyny is permitted in Islam under some conditions. Both the groom and the bride are to consent to the marriage of their own free wills. Marriage is an act of Islam and is strongly recommended. In Islamic jurisprudence, the primary purpose of sex between marriage and concubinage is procreation. Islam recognizes the strong sexual urge and desire for reproduction and supports a pro-natalist view of procreation.
Divorce in Islam can take a variety of forms, some executed by a husband personally and some executed by a religious court on behalf of a plaintiff wife who is successful in her legal divorce petition for valid cause.
In addition to nikah, there is a different fixed-term marriage known as zawāj al-mut'ah ("temporary marriage")$^{:1045}$ permitted only by the Twelver branch of Shi'ite for a pre-fixed period.$^{:242}$ There is also Nikah Misyar, a non-temporary marriage with the removal of some conditions such as living together, permitted by some Sunni scholars.
In Islam, the husband should have intercourse with his wife according to what satisfies her, so long as that does not harm him physically or keep him from earning a living. The husband is obliged to treat his wife in a kind and reasonable manner. Part of that kind and reasonable treatment is intercourse, with tradition stipulating that couples should not forego intercourse for longer than four months, though some prominent scholars have prescribed a more stringent minimum frequency of sexual intercourse as a religious obligation for husbands; Ibn Hazm prescribed once a month and Al-Ghazali prescribed once every four days. According to other scholars, there is no time limit. However, most scholars say that it is obligatory on women alike not to refuse their husbands if they call them, so long as the woman who is called is not menstruating or sick in such a way that intercourse will be harmful to her, or observing an obligatory fast. If she refuses with no excuse, then she is cursed.

##### Interfaith marriage

Interfaith marriages are recognized between Muslims and Non-Muslim "People of the Book" (usually Jews, Christians, and Sabians). According to the traditional interpretation of Islamic law (sharīʿa), a Muslim man is allowed to marry a Christian or Jewish woman but this ruling does not apply to women who belong to other Non-Muslim religious groups,$^{:755}$ whereas a Muslim woman is not allowed to marry a Non-Muslim man of any Non-Muslim religious group. However, marriage with an idolatress or idolater is forbidden.
In the case of a Muslim-Christian marriage, which is to be contracted only after permission from the Christian party, the Christian spouse is not to be prevented from attending church for prayer and worship, according to the Ashtiname of Muhammad, a treaty between Muslims and Christians recorded between Muhammad and Saint Catherine's Monastery.

#### Concubinage

Before the abolition of slavery, concubinage existed alongside marriage as a permitted relationship in Islamic law that allowed a man to have sexual intercourse with his female slaves. Concubinage, which was a sexual relationship between a Muslim man and an unmarried female slave whom he owned, was the only legal sexual relationship outside marriage in Islamic law.
"Concubine" (surriyya) refers to the female slave (jāriya), whether Muslim or non-Muslim, with whom her master engages in sexual intercourse. The word surriyya is not mentioned in the Quran. However, the expression "Ma malakat aymanukum" (that which your right hands own), which occurs fifteen times in the sacred book, refers to slaves and therefore, though not necessarily, to concubines. Concubinage was a pre-Islamic custom that was allowed to be practised under Islam through some reform with Jews and non-Muslim people. Muhammad also inspired to free "converted pious" concubines and marry them.
Islamic jurisprudence sets limits on the master's right to sexual intercourse with his female slave. A man's ownership of his unmarried slave-girl gave him an exclusive right to have sex with her under the condition that he could not sell her to others (in order to prevent prostitution of slaves) and neither harm her. A man could own a limitless number of concubines that he could afford and maintain their upkeep, but could not have access to the slave-girls owned by his wife. Marriage between the master and his concubine was only possible if she was granted free status first. To avoid pregnancies, the master had the right to practice coitus interruptus. The birth of progeny, if her enslaver acknowledged paternity of the child, would change the legal status of the concubine to that of umm al-walad ("mother of the child"); as such, the concubine could not then be sold and her child would be seen as legitimate and free. On the (lawful) death of her master, she would automatically acquire free status.

#### Purification and hygiene

Sexual hygiene in Islam is a prominent topic in Islamic jurisprudence (fiqh) due to its everyday nature. After sexual intercourse or seminal discharge, individuals enter a state known as junub (جنب) meaning ritually impure due to sexual intercourse or seminal discharge.
This state prevents a person from offering salat, and a person in such a state must perform a full-body ablution known as ghusl to regain the state of ritual purity necessary to once again perform prayers, or touching a copy of the Quran.

#### Ramadan

During Ramadan, sexual activity is only permitted at night. Although this passage is explicitly addressed to men, the regulations on sex in regard to fasting are universally taken to apply equally to both male and female Muslims.

### Family planning
#### Contraception

The Quran does not contain explicit text regarding contraception. Muslims refer to the hadith on the question of contraception. According to Muslim scholars, birth control is permitted, when it is temporary and for a valid reason. As such, the withdrawal method of contraception—'Azll—is allowed according to the hadith. Muslim jurists concur with its permissibility and use analogical deduction to approve other forms of contraception (e.g., condom usage).
Under normal circumstances, sterilization is not considered to be permitted in Shari’ah. The irreversible nature associated with both the male and female sterilizations contradicts one of the primary purposes of marriage which is to have children, as mentioned by Abu Hamid al-Ghazali in his Ihya’ Ulum al-Din. Furthermore, sterilization is considered a form of self-mutilation (muthla), which is forbidden. While sterilization as a form of permanent contraception is primarily forbidden in Islam, sterilization is allowed for specific health indications such as uncontrolled diabetes, heart disease, or congenital abnormalities incompatible with life. In such cases, patients may be sterilized after they have given their free, informed consent.

#### IVF treatment

As early as 1980, authoritative fatwas issued from Egypt's famed Al-Azhar University suggested that in vitro fertilisation (IVF) and similar technologies are permissible In Islam as long as they do not involve any form of third-party donation (of sperm, eggs, embryos, or uteruses).

### Intersexuality

Intersex persons in Islam are referred to as khunthaa in the books of Fiqh.
An intersex person may have sex characteristics or organs that are not typically male or female. This person is called a khunthaa in the books of Fiqh. There are three types of khunthaa:
1. A person has aspects of both organs and urinates from the male organ. This person will be included among the males, and the laws regarding males will fall on them.
2. The person urinates from the female organ, so they will be included among the females. The laws related to females will fall on this person. This applies before the person reaches maturity. After maturity, the person will be rechecked. If they experience wet dreams like a male, then they will be counted as male. On the other hand, if the person develops breasts and other signs of being female, then they will be included among the females.
3. When both masculine and feminine signs are equal and it cannot be determined whether the person is more male or more female, then such a person is termed khunthaa mushkil. There are different laws regarding such a person. It is not permissible for a khunthaa mushkil to wear silk and jewellery, as both of these are permissible for females, but because this person's condition cannot be ascertained, precaution demands that such a person not wear silk and jewellery because of the possibility that the person may be more male. Such a person cannot travel without a mahram because of the possibility of being more female.
Intersex medical interventions are considered permissible to achieve agreement between a person's exterior, chromosomal make-up, or sex organs. They are regarded as treatment and not the altering of Allah's creation or imitation of the opposite sex.

## Legal ambiguations
### Masturbation

There are varying scholarly views of masturbation (Arabic: استمناء, romanized: istimnā’) in Islam, largely because the Qur'an does not specifically mention the subject. Islamic scripture does not specifically mention masturbation. Like most people prior to the morals of the Age of Enlightenment, pre-modern Islam faced masturbation mostly with indifference. A few hadiths underline this view, stating that "it is your fluid, or your member, so do whatever you like, as it were.". There are a few hadiths prohibiting masturbation but these are classified as unreliable.
Masturbation has nevertheless been considered haram or prohibited by many jurists historically, though often with the caveat that it may be permissible if done out of necessity. For example, one scholar notably permitted masturbation as a means whereby soldiers, far away from their wives on a tour of duty might remain chaste. At the same time, in certain points in history, masturbation has also been considered among the great sins, and subject to discretionary punishments ta'zir under Islamic law, with stronger punishments in case of repeat offense. As such, positions on masturbation vary widely.
The four Sunni schools of jurisprudence or fiqh (Hanafi, Shafi'i, Maliki and Hanbali), have differing stances on the issue. Some see it forbidden in certain cases (i.e. if it leads a man/woman to ignore their spouse sexually) but recommended it when they see it as a lesser evil to illicit sex. In the Maliki and Shafi'i schools, masturbation is typically fully prohibited, while in the Hanafi and Hanbali schools, it is typically prohibited unless one spouse is unattainable and one fears adultery or fornication (i.e. in a state of extreme sexual desire), in which case, it is permissible to seek a relief through masturbation.
The Maliki and Shafi'i position stem from it being considered prohibited by both Imam Malik ibn Anas and Imam Al-Shafi’i, the latter stating that verses in the Qur'an about guarding one's chastity and private parts applied to masturbation. At the same, there is a minority opinion within the Maliki school that allows masturbation if done in private and without the use of illicit materials such as pornography and drugs. Some Hanbali jurists meanwhile also excuse that those under the desire pressure from not being married, and Ahmad ibn Hanbal also said it is permissible for prisoners, travellers and for men and women who have difficulty in finding a lawful spouse. In Hanafi scholarship, a wife manually stimulating her husband is meanwhile disliked, but not prohibited, meaning it would be preferable not to do so but doing so will not incur sin.
In Shia jurisprudence, masturbation is generally considered prohibited, though there has always been a view to permit masturbation as the lesser of two evils (so as to ward off falling into fornication). Those jurists who permit masturbation in different cases distinguish between those who masturbate out of necessity and those who have these means yet still masturbate to gratify their lust. Ja'far as-Sadiq also cited the Quran'ic verses on guarding one's chastity and private parts. The modern Iranian jurist Ali al-Sistani has stated that masturbation, while emphasising that it is haram in all other circumstances, is permissible in case of medical necessity, provided there was no lawful means to achieve ejaculation.

### Oral sex

In Sunni Islam, oral sex between a husband and wife is considered "Makruh Tahrimi" or highly undesirable by some Islamic jurists when the act is defined as mouth and tongue coming in contact with the genitals. The reason behind considering this act as not recommended is manifold, the foremost being the issue of modesty, purification (Taharat) and cleanliness. In Twelver Shia Islam, oral sex is permitted as long as najasah (impurity) is not consumed.
The most common argument states that the mouth and tongue are used for recitation of the Quran and for the remembrance of Allah (Dhikr). The status of contact between genitals and mouth and genital secretions is also debated among the four Sunni schools, some scholars viewing them as impure and others not.

### Abortion

Islamic schools of law have differing opinions on abortion, though it is prohibited or discouraged by most. However, abortion is allowed under certain circumstances, such as if the mother's health is threatened. If the abortion is necessary to save the woman's life, Muslims universally agree that her life takes precedence over the life of the fetus.
Muslim views on abortion are also shaped by the Hadith as well as by the opinions of legal and religious scholars and commentators. In Islam, the fetus is believed to become a living soul after four months of gestation, and abortion after that point is generally viewed as impermissible. Many Islamic thinkers recognize exceptions to this rule for certain circumstances; indeed, Azizah Y. al-Hibri notes that "the majority of Muslim scholars permit abortion, although they differ on the stage of fetal development beyond which it becomes prohibited."
Some Muslim scholars hold that the child of rape is a legitimate human being and therefore subject to the normal laws of abortion, that it is permitted only if the fetus is less than four months old, or if it endangers the life of its mother. Certain contemporary fatwas have also laid out the position that permit abortion if the newborn might suffer from a congenital condition that would make its care exceptionally difficult for the parents.

### Transsexuality, transgender, and third gender
#### Gender overview

According to Islamic tradition, gender can be divided into the following groups: male, female, khunsa, mukhannis (binary transgender), and mukhannas (non-binary transgender). According to the Iranian scholar Mehrdad Alipour, "in the premodern period, Muslim societies were aware of five manifestations of gender ambiguity: This can be seen through figures such as the khasi (eunuch), the hijra, the mukhannath, the mamsuh and the khuntha (hermaphrodite/intersex)."
The Arabic term for a trans woman is mukhannith, whereas the term for a trans man is mutarajjilah. It is generally considered possible to change one's gender according to Islamic law, however, transition is linked to surgery. Since homosexuality is usually forbidden, some people seek out sexual reassignment surgery to change their gender status. Transgender identities usually work within the gender binary, although in some Classical Arabic literature, gender identities deviating from the gender binary have been discussed.
In Islamic literature, the plural term mukhannatun (مخنثون "effeminate ones", "men who resemble women", singular mukhannath) was a term used to describe gender-variant people, and refers to a person who behaves like a woman in gentleness, speech, appearance, movements and so on. The mukhannath is to be distinguished from both the khuntha (intersex) and the eunuch (castrated). Any form of castration is strongly forbidden in Islam.

#### Legal status

A hadith from collection of Bukhari (compiled in the 9th century), is often used as example for the legal status of transgender people in general. It includes a report regarding mukhannathun, who were granted access to secluded women's quarters and engaged in other non-normative gendered behavior: In hadiths attributed to Muhammad's wives, the mukhannath in question expressed his appreciation of a woman's body and described it for the benefit of another man. According to one hadith, this incident was prompted by a mukhannath servant of Muhammad's wife Umm Salama commenting upon the body of a woman and following that, whereupon Muhammad cursed the mukhannathun and their female equivalents, mutarajjilat and ordered his followers to remove them from their homes.
These hadiths have been used by some to oppose the legitimacy of transgender people in general and sometimes, to sanction surgery. However, this prohibition is not universal. Since Muhammad did not forbid the mukhannatun to enter woman's space at first, but only after this specific mukhannath abused his trust, these hadiths can be seen as validation of third-gender identities.
Shia scholar Ayatollah Khomeini, as affirmed by Ayatollah Khamenei, as well as various Sunni scholars, ruled out that "Sex-reassignment surgery is not prohibited in shari'a law if reliable medical doctors recommend it." Similarly, scholars from Pakistan agreed that transsexual people, who took sexual reassignment surgery, would be allowed to marry and be buried according to Islamic funeral law.
Likewise, transgender identities beyond the binary spectrum have been discussed and partly validated. Islamic literary sources mention a mukhannath named Ṭuways, but never describe his sexuality or behavior as immoral. Al-Nawawi and al-Kirmani distinguished mukhannathun into those whose feminine traits seem unchangeable, despite the person's best efforts to stop them, and those whose traits are changeable but refuse to stop. Only the latter ones are to blame. Ibn Hajar al-Asqalani stated that all mukhannathun must make an effort to cease their feminine behavior, but if this proved impossible, they were not worthy of punishment. Those who made no effort to become less "effeminate", or seemed to "take pleasure in (his effeminacy)", were worthy of blame.

## Legal prohibitions
### Immodesty

Islam strictly prohibits fahisha, an Arabic word commonly meaning lewdness and indecency. Salah is supposed to prevent one from indecency (fahisha) and evil deeds (munkar). Jurists also recommend to abstain from acts inciting zina and to hold on taqwa (abstinence from Haram) so that a solution must be gotten from God in reward according to Quran.

### Zina (non-marital sex)

According to Islamic laws made by exegesis of the Quran and the hadiths, all sexual relationships except with a spouse (or a man's concubine) are considered zinā (fornication). Zina must also be committed by a person of their own free will. According to traditional jurisprudence, zina can include fornication, adultery, prostitution, rape, anal sex, incest, and bestiality.

#### Prostitution

According to Abdel Sabour Abdel Qawi Misry, prostitution in Islam is forbidden. Daz Austin Endshow says that, Qur'an says about prostitution that female slaves should not be forced into prostitution. Islamic prophet Muhammad said: There is no prostitution in Islam. The penalty for prostitution in Islam is one hundred lashes for the adulterer or adulteress. If a married man or woman is practicing prostitution, the punishment amounts to death by stoning. Despite the severity of the punishments, Islam has established laws that make the practice of punishment against perpetrators of prostitution extremely difficult, as it is required to punish the practitioner of prostitution that he personally confess. By engaging in it, or that there are four witnesses who witnessed the act of having sex, provided that the adulterer has a clear vision beyond doubt, provided that part of his penis (the glans or more) is absent in the adulteress’s vagina, and that none of the four witnesses retract his testimony, otherwise the remaining three or less will become guilty. On charges of slandering a man and a woman, the punishment for slander is imposed on them. Islam also imposes strict punishments on those who accuse chaste women of engaging in prostitution without conclusive evidence, namely four witnesses.

#### Rape

Rape is considered a serious sexual crime in Islam, and can be defined in Islamic law as: "Forcible illegal sexual intercourse by a man with a woman who is not legally married to him, without her free will and consent".
Classical Islamic law defined what today is commonly called "rape" as a coercive form of fornication or adultery (zināʾ). This basic definition of rape as "coercive zināʾ" meant that all the normal legal principles that pertained to zināʾ—its definition, punishment and establishment through evidence—were also applicable to rape; the prototypical act of zināʾ was defined as sexual intercourse between a man and a woman over whom the man has neither a conjugal nor an ownership right. Zināʾ was established, according to classical law, through confession by one or both parties as well as proof. A second type of evidence—pregnancy in an unmarried/unowned woman—was contested between the schools. The stringent evidentiary and procedural standards for implementing the zināʾ punishment may have functioned to offset the severity of the punishment itself, an effect that seems to have been intended by legal authorities, who in the early period developed legal maxims encouraging averting the ḥadd punishments as much as possible, whether through claiming ambiguity (shubhah) or a lack of legal capacity (ahliyya).
The requirements for proof of rape, by contrast, are less stringent, and do not require any extraneous witness testimony, eyewitness or otherwise:
   Rape charges can be brought and a case proven based on the sole testimony of the victim, providing that circumstantial evidence supports the allegations. It is these strict criteria of proof which lead to the frequent observation that where injustice against women does occur, it is not because of Islamic law. It happens either due to misinterpretation of the intricacies of the Sharia laws governing these matters, or cultural traditions; or due to corruption and blatant disregard of the law, or indeed some combination of these phenomena.
Caliph Umar accepted the testimony of a single individual who heard the rape victim call for help as evidence that rape occurred. Imam Malik accepted physical injuries on the victim as evidence that rape occurred. If a woman claims to have been raped or sexually abused under duress, she will be acquitted of adultery in light of Qur'anic verse 24:33, which states that a woman has not sinned when compelled to commit this crime.
According to Professor Oliver Leaman, the required testimony of four male witnesses who eyewitnessed the actual penetration applies only to consensual illicit sexual relations (whether adultery or fornication), not to the non-consensual crime of rape.
What distinguished a prototypical act of zināʾ from an act of rape, for the jurists, was that in the prototypical case, both parties act out of their own volition, while in an act of rape, only one of the parties does so. Jurists admitted a wide array of situations as being "coercive" in nature, including the application of physical force, the presence of duress, or the threat of future harm either to oneself or those close to oneself; they also included in their definition of "coercion" the inability to give valid consent, as in the case of minors, mentally ill, or unconscious persons. Muslim jurists from the earliest period of Islamic law agreed that perpetrators of coercive zināʾ should receive the ḥadd punishment normally applicable to their personal status and sexual status, but that the ḥadd punishment should not be applied to victims of coercive or nonconsensual zināʾ due to their reduced capacity.

#### Incest

Marriage is not allowed between most relatives with whom relations would typically considered incestuous, including a man marrying his mother, daughter, sister, aunt, niece or mother-in-law. However cousin marriages are not prohibited and are widely practiced throughout many parts of the Islamic World, as they are not considered mahrams, or direct relatives. Other prohibited marriages include step-children born of a spouse whom the individual has consummated the marriage with, or multiple sisters from the same family. Incestuous relationships in Islam (zinā bi'l-mahārim) are those with any of a person's mahram, a definition of nuclear and extended family derived from the hadith.

#### Anal sex

All Sunni Muslim jurists agree that anal sex is haram (prohibited), based on the hadith of Muhammad. In contrast, according to Twelver Shia Muslim jurists, anal sex is considered makruh (strongly disliked) but is permissible with the consent of the wife.
Many scholars point to the story of Lot in the Quran as an example of sodomy being an egregious sin. However multiple others hold the view that the destruction of Sodom and Gomorrah was not specifically due to the sodomy practiced in those towns, but as a combination of multiple transgressions. The death by stoning for people of Sodom and Gomorrah is similar to the stoning punishment stipulated for illegal heterosexual sex. There is no punishment for a man who sodomizes a woman because it is not tied to procreation. However, other jurists insist that any act of lust in which the result is the injecting of semen into another person constitutes sexual intercourse.
Sodomy often falls under that same category as sex between an unmarried man and woman. Male-male intercourse is referred to as liwat while female-female intercourse is referred to as sihaq. Both are considered reprehensible acts but there is no consensus on punishment for either. Some jurists define zināʾ exclusively as the act of unlawful vaginal penetration, hence categorizing and punishing anal penetration in different ways. Other jurists included both vaginal and anal penetration within the definition of zināʾ and hence extended the punishment of the one to the other.
Religious discourse has mostly focused on such sexual acts, which are unambiguously condemned. The Quran refers explicitly to male-male sexual relations only in the context of the story of Lot, but labels the Sodomites' actions (universally understood in the later tradition as anal intercourse) an "abomination" (female-female relations are not addressed). Reported pronouncements by Muhammad (hadith) reinforce the interdiction on male-male sodomy, although there are no reports of his ever adjudicating an actual case of such an offence; he is also quoted as condemning cross-gender behaviour for both sexes and banishing them from local places, but it is unclear to what extent this is to be understood as involving sexual relations. Several early caliphs, confronted with cases of sodomy between males, are said to have had both partners executed, by a variety of means. While taking such precedents into account, medieval jurists were unable to achieve a consensus on this issue; some legal schools prescribed capital punishment for sodomy, but others opted only for a relatively mild discretionary punishment. There was general agreement, however, that other homosexual acts (including any between females) were lesser offences, subject only to discretionary punishment.

#### Homosexuality

The Quran strictly prohibits homosexuality through the story of Lot (also in the Biblical Book of Genesis), in Surat Al-Nisa, Surat Al-A'raf, and possibly verses in other surahs. For example, Abu Dawud states, Al-Nuwayri (1272–1332) in his Nihaya reports that Muhammad is "alleged to have said what he feared most for his community were the practices of the people of Lot." Classical Islamic jurists did not deal with homosexuality as a sexual orientation, since the latter concept is modern and has no equivalent in traditional law, which dealt with it under the technical terms of liwat and zina. Most legal schools treat homosexual intercourse with penetration similarly to unlawful heterosexual intercourse under the rubric of zina, but there are differences of opinion with respect to methods of punishment.
There is disagreement over what punishments should be administered according to the above Quranic and prophetic orders. Early caliphs were known to have had both of the male partners executed in various ways. Some other jurists believe that there is no punishment that will serve as an effective purgative for this act, and therefore its immorality precludes an earthly punishment. Some jurists are so morally offended by homosexuality that just the discussion around it is cause for excommunication and anathematizing.
The discourse on homosexuality in Islam is primarily concerned with activities between men. There are, however, a few hadith mentioning homosexual behaviour in women. Although punishment for lesbianism is rarely mentioned in the histories, al-Tabari records an example of the casual execution of a pair of lesbian slavegirls in the harem of al-Hadi, in a collection of highly critical anecdotes pertaining to that Caliph's actions as ruler. Some jurists viewed sexual intercourse as possible only for an individual who possesses a phallus; hence those definitions of sexual intercourse that rely on the entry of as little of the corona of the phallus into a partner's orifice. Since women do not possess a phallus and cannot have intercourse with one another, they are, in this interpretation, physically incapable of committing zinā.

### Castration

According to Muslim tradition Islamic prophet Muhammad forbade castration. Muhammad told a follower who asked for permission to castrate himself to avoid the temptation to fornicate, "He who castrates himself or another does not belong to my followers, for castration in Islam may consist only in fasting." This hadith is in the context of another, which encourages men who are unable to get married and struggle with chastity and desires to resort to fasting, as this helps with lowering libido.