Porn Addiction
Solution

Recovery guide

How to stop masturbating in Islam

IslamQA cites a reported saying of the Prophet Muhammad advising marriage where it is possible and fasting for those who cannot marry. Egypt’s Dar al-Ifta advises refraining from what arouses desire. Other publishers’ advice on how to stop masturbating in Islam pairs worship with everyday steps, such as a routine and using devices where others are around. Each piece of advice below is one named publisher’s reading, not the voice of all Islam. None of it is a ruling or an instruction from this site.

What practical steps do Islamic publishers advise?

Three publishers set out how to quit masturbation in Islam, whether a person calls it a habit or an addiction: SeekersGuidance, the Islamic Heritage Center and Tohed. Egypt’s Dar al-Ifta adds a point about what arouses desire. The order below is not a ranking.

SeekersGuidance’s advice comes from an answer by Ustadha Shazia Ahmad, checked and approved by Shaykh Faraz Rabbani:

  • “Please take a course on your basics of worship to be sure that you are not making any significant mistakes”
  • “Read some Quran daily”
  • “give charity regularly and keep up the dhikr”

Dhikr means remembering God, often by repeating set phrases. The wording is modest: “some Quran”, with no set amount in the line.

The Islamic Heritage Center’s plan leans toward daily life. It includes these steps:

  • “Delete the images, videos, accounts, and conversations that arouse desire.”
  • “Seek Help Through Fasting”
  • Marrying if able
  • “Fill Your Time with a Realistic Routine”

The first step reaches past images and videos to accounts and conversations. The word “Realistic” suggests a routine a person can actually keep.

Tohed’s ways to quit mix worship and daily life, and they include:

  • “Get Married”
  • “Observe Fasting”: “Make a habit of frequent fasting.”
  • “Keep yourself busy with sports and physical exercises.”
  • “Use your computer and mobile in public spaces where others are around.”
  • “Wake up early and pray Tahajjud, and sincerely supplicate to Allah.”

Tahajjud is a voluntary prayer at night, and to supplicate is to ask God directly.

Read side by side, the lists differ in their mix. In the steps quoted here, fasting and marriage appear on the Islamic Heritage Center and Tohed lists, and prayer or other worship on the SeekersGuidance and Tohed lists. The SeekersGuidance steps quoted here stay with religious practice: learning, reading, giving and remembering. Between them, the other two reach further into ordinary life. They cover what gets deleted, where a screen gets used, how the day is filled and how active a person is.

Egypt’s Dar al-Ifta gives its advice in a fatwa, a formal religious answer, about masturbating while watching porn. Dar al-Ifta advises “Refraining from anything that arouses sexual desire such as listening to immoral songs and watching lewd images”. Its examples cover what a person hears as well as sees, which is wider than the Islamic Heritage Center’s step on deleting material. The same fatwa says “In Islamic law, it is prohibited to watch pornographic movies.” Stopping porn has its own answers, and our guide to stopping porn as a Muslim sets them out, along with the teaching on the gaze.

What does the fasting hadith say?

A hadith is a reported saying of the Prophet Muhammad. As rendered by IslamQA, a question-and-answer site, this one says that whoever can marry should marry, and that whoever cannot should fast, which the hadith calls “a shield against evil.” IslamQA gives this wording:

“O youth, whoever of you is able to marry, let him marry, for it prevents forbidden stares or lapsing in adultery.”

“And if he cannot marry, let him observe fasting, for it is a shield against evil.”

The second line is addressed to those who cannot marry. So the hadith does not leave a person who cannot marry without a practice, even though Tohed’s heading says simply “Get Married”. The worship, routine and device steps quoted above do not make marriage a condition either.

The hadith as quoted does not say how often to fast, and the word in Tohed’s line is “frequent”. The quoted words do not name masturbation. IslamQA brings them to this question, presenting fasting as “a shield against evil.” That is a religious teaching, not a research finding.

Do scholars agree that masturbation is haram?

This page quotes two publishers on the ruling, and both call it prohibited, though their wording differs: IslamQA holds it haram (forbidden) “for both men and women”, citing Al-Imam Shafi’i, while Egypt’s Dar al-Ifta calls it prohibited “without a necessity”. The verses IslamQA relies on and the positions of Islam’s legal schools are in our page on whether masturbation is haram. IslamQA’s wording includes women, and a separate guide for Muslim women also covers how to stop.

Can you stop a masturbation habit permanently in Islam?

Inside Islam or outside it, no method can promise that someone will stop masturbating forever. The lines quoted above give advice, not a date or a guarantee.

Notice the words SeekersGuidance and Tohed use: “daily”, “regularly”, “frequent”. Wanting to stop for good is a serious aim, and these sources answer it with practices kept up over time.

Tohed also lists “Consult a Psychologist if Necessary”. Tohed frames that step for when the problem is severe and self-discipline alone is not managing it. If that fits, a psychologist or a doctor is a good person to talk to.

Sources

  1. Masturbation (IslamQA 329); fatwa_sex_003. IslamQA (Sheikh Muhammad Salih al-Munajjid), Q329; and Islam Awareness (fatwa text). Link
  2. How to Purify Myself from Pornography and Masturbation. SeekersGuidance. Link
  3. Masturbation in Islam: Ruling and How to Quit — Islamic Heritage Center (on-page H1: Masturbation in Islam: Its Ruling, Repentance, and How to Quit). Link
  4. Ruling on Masturbation in Islam and 7 Effective Ways to Quit It. Tohed (en.tohed.com). Link
  5. Is it permissible to masturbate through watching porn movies? Dar al-Ifta al-Misriyyah (Egypt). Link
  6. Is Masturbation Haram in Islam? (answer 329). Islam Question & Answer (IslamQA). Link

Angus Munro

Clinical Psychologist, Sydney, Australia

Angus Munro is a clinical psychologist registered with AHPRA in Australia. He wrote the Porn Addiction Solution course.

Full profile and credentials