Masturbation is not clearly forbidden or allowed in Islam

The generally accepted principle of fiqh (Islamic jurisprudence) is that when it comes to enjoying sexual pleasure, everything is forbidden unless it is explicitly allowed. The Quran’s general teaching on sexuality is that Muslims should “guard their privates” except when taking pleasure in the context of a religiously sanctioned intimate relationship.

A strict interpretation of this verse is that all sexual pleasure is forbidden unless it is had with a spouse. A non-strict interpretation is that all sexual intercourse is forbidden unless it is had with a spouse, which means that masturbation is not included in the prohibition.

The Quran never mentions masturbation, so we cannot use it to reach a final judgment. As for hadith, there isn’t a single authentic narration that mentions masturbation (as stated by fatwa number 35889 from, therefore hadith cannot help us either in reaching a definitive judgment.

Ambr bin Dinar, one of the Tabieen (belonging to the generations that came soon after the Companions) and a hadith and fiqh scholar says, “I see no issue with masturbation.”1 Jabir bin Zaid, known by the nickname Abul Shaathaa, student of the companion Ibn Abbas (may Allah be pleased with him) also says he sees no problem with it2. Ibn Abbas says that marriage is better than masturbation, and masturbation is better than fornication.3. Imam Ahmad ibn Hanbal, founder of the Hanbali school of fiqh, says there is no issue with it.4

The most famous scholar to permit masturbation was Imam al-Shawkani (died 1839), a widely respected reformer and revivalist. While he ruled that masturbation is permitted in Islam without conditions (other scholars have said that there are conditions needed to make it permissible, but al-Shawkani says no conditions are needed), he says:

There is no doubt that engaging in this act is a flaw (in one’s character), a show of a lack of self-respect, and a show of abasement in manners and a lack of willpower.

So he criticizes the act, but says there isn’t sufficient evidence to forbid it.

In the modern world, the Moroccan scholar Abdel-Bari Zamzami (died 2016) allowed masturbation for men and women, saying that since it helps one avoid illicit sexual acts, and since there is no clear evidence that it is forbidden, permitting it is more beneficial than forbidding it.

The Maliki and Shafii schools say that masturbation is forbidden.

Making sense of the situation

What scholars have often done is try to take the vagueness out of the scripture by enforcing their own interpretations, either saying masturbation is a sin (some of them say it is a major sin and the person who does it is somehow cursed), or saying that there is nothing wrong with it, such as Imam al-Shawkani who permitted it. Both of these approaches ignore an important teaching of the Prophet ﷺ in dealing with vagueness in religious matters, expressed in the two following authentic narrations:

“What God makes permissible in His book (the Quran), then that is permissible, and what He makes prohibited, that is prohibited, and what He is silent about, that is out of His mercy, so accept His mercy, for God does not forget anything.”

“God has made certain things obligatory, so do not neglect those, and He has set certain bounds, so do not overstep those bounds, and He has remained silent on certain matters out of His mercy on you, not out of forgetfulness, so do not seek out those matters (i.e. do not make a big deal of them).”

When it comes to masturbation, the Quran and the Sunnah do not explicitly prohibit it, and they do not explicitly allow it, leaving it in a gray area.

To a pious person who is eager to please God, the meaning of these things is clear:

  1. It is not important enough to be explicitly forbidden or allowed by God and His Prophet ﷺ.
  2. Every Muslim’s aim should be to avoid it if they can, since true love and fear of God means that a person should avoid everything that has even the slightest possibility of displeasing Him.
  3. If someone is overwhelmed by desire into doing it, or cannot control their impulses so that they habitually do it, they should not obsess about, they should repent and go on with their lives, knowing that what they have done is a small lapse in manners, rather than a crime.

Masturbation, teenagers and scholarly humility

Teenagers, especially teenage boys, have heightened sexual desire, while also having poor impulse control, since the brain’s prefrontal cortext does not finish developing until after the age of 25. These two factors (increased sexual desire, low ability to control urges) can make it very difficult for them to avoid masturbation.

Making teenagers feel bad about masturbation is a short-sighted and destructive thing that many preachers misguidedly do, decreasing these teenagers’ religious self-esteem and making them feel as if they will never be good Muslims, since they are supposedly committing a great sin and cannot stop themselves.

The result is that these teenagers start to think of Islam as an outdated and cruel religion that is asking them to do the impossible.

The balanced approach is to tell teenagers that it is best if they avoid it since it is in a gray area, while also telling them that it is not clearly forbidden, therefore if they cannot help themselves and end up doing it, they should not obsess about it, but repent and go on with their lives.

Rather than making baseless statements about masturbation, saying it is allowed or saying it is forbidden, we must acknowledge the vagueness of the Islamic texts on this issue, while also respecting the wisdom of the scholars in their dislike for it.



Different stages of growth and different life circumstances affect a person’s desire for masturbation. Depression, loneliness and a lack of social interaction, for example, makes it more likely that a person will want to masturbate, and not just among humans. I have seen many articles mention that monkeys in captivity masturbate, but those who live in the wild do not.

Most of our scholars consider masturbation an undignified act that a self-respecting person would not do. While they are right about this when it comes to themselves, they should have empathy for younger people living in very different circumstances and subject to far stronger sexual desires and a lower ability to control their impulses due to the fact that their brain development is not complete. Instead of asking the impossible of young people, of having perfect control over their desires like the scholars themselves, they should treat them with kindness and forgiveness, telling them that there is a consensus among Muslims that masturbation is not a dignified thing to do, but that Islam does not clearly forbid it, and that as people age, it becomes easier to avoid it.


  1. المصنف لعبد الرزاق /ج7/ ص 392 / ط المجلس العلمي بتحقيق الأعظمي
  2. المصنف لعبد الرزاق /ج7/ ص 391
  3. توضيح حول ماجاء عن ابن عباس في الاستمناء إسلام ويب، رقم الفتوى: 131921

One thought on “Masturbation is not clearly forbidden or allowed in Islam

Leave a Reply

Your email address will not be published.