Leaving pornography is possible and many people have done it: Islam asks for sincere repentance, lowering the gaze, removing triggers, a lawful outlet through marriage where possible, fasting, good company and constant dua, and modern counsellors add practical steps such as filters, accountability and professional help.
- Allah calls even those who have transgressed against themselves not to despair of His mercy (39:53), and the Prophet (saw) said that every son of Adam sins and the best of sinners are those who repent often (Jami' al-Tirmidhi and Sunan Ibn Majah, hasan per al-Albani).
- The Qur'an commands believers to lower their gaze and guard their private parts (24:30 to 31), and the Prophet (saw) taught not to follow one glance with another, since the first is allowed but the second is against you (Sunan Abi Dawud and Jami' al-Tirmidhi, hasan).
- Ibn al-Qayyim in al-Jawab al-Kafi explains how a glance becomes a thought, then a desire, then a habit, and that the best time to stop is at the first step.
- If the habit feels compulsive or damages relationships or work, seeing a doctor or a qualified counsellor is not a sign of weak faith and may be part of the cure.
Introduction
The question asks how to stop watching pornography. It deserves a kind and practical answer, since many Muslims of both sexes struggle with this, often in secret and with shame. The Islamic tradition gives a clear ruling that looking at such material is forbidden, but it also gives hope, a method and a way back. This answer sets out the ruling briefly, then spiritual and practical steps, and notes where professional help is wise.
The Qur'an says: "Tell the believing men to lower their gaze and guard their private parts; that is purer for them" (24:30), and the next verse addresses believing women in the same way. The Qur'an also forbids approaching adultery (17:32), and scholars such as Ibn Kathir and al-Qurtubi explain that this includes the steps leading to it, among them looking and lustful thoughts. At the same time Allah says: "Say: O My servants who have transgressed against themselves, do not despair of the mercy of Allah" (39:53). The person who asks this question is already on the path out.
Begin with repentance and a clean break
The scholars, including al-Nawawi in Riyad al-Salihin, describe repentance (tawba) as having conditions: stopping the sin, regretting it, and resolving not to return, together with putting right any wrong done to others. Allah says: "Turn to Allah in repentance, all of you, O believers, that you may succeed" (24:31). The Prophet (saw) said that the one who repents from a sin is like one who has no sin (Sunan Ibn Majah, graded hasan by al-Albani). Relapse does not cancel the repentance: a person who falls, repents again, and again, is still on the path, as the hadith qudsi in Sahih Muslim says that Allah will forgive the servant who sins and repents each time. The Prophet (saw) also said that if you did not sin, Allah would replace you with a people who sin, then seek forgiveness and He forgives them (Sahih Muslim). This is not an invitation to sin, but a reminder that despair is the greater danger.
Do not publicise the sin, for the Prophet (saw) said that all of my community will be forgiven except those who expose their sins openly (Sahih al-Bukhari and Sahih Muslim). Seek counsel from one trusted person, such as a wise friend or an imam who is known for discretion, if you need someone to hold you to account. After each fall pray two rak'ahs of repentance, a practice mentioned in a hadith of Abu Bakr (ra) in Sunan Abi Dawud and Jami' al-Tirmidhi, which the scholars graded hasan.
Lower the gaze, cut the triggers and build new habits
Ibn al-Qayyim in al-Jawab al-Kafi (also titled al-Da' wa'l-Dawa') describes the stages: the glance, the thought, the desire, the decision and the act, and advises that the easiest place to stop is the beginning. In modern terms, this means removing what leads to the habit. Practical steps that many counsellors suggest and that fit this teaching include the following. Install filters and blockers on every device and have a trusted person set the password. Keep devices in shared rooms and out of the bedroom and bathroom, especially at night. Delete accounts and apps that trigger the habit. Avoid being alone and idle late at night, since the Prophet (saw) taught that two blessings are often wasted, health and free time (Sahih al-Bukhari). Notice the emotions that precede the habit, such as loneliness, boredom, anger or stress, and plan a different response, such as a walk, a shower, a call, wudu or prayer.
Fill the space left behind. The Prophet (saw) said that whoever gives up something for the sake of Allah, Allah will replace it with something better (Musnad Ahmad, graded sahih by the editors of the Musnad). Take up exercise, study, work towards a goal, voluntary fasting, regular attendance at the mosque and time with righteous friends, for the Prophet (saw) said that a person follows the religion of his close friend, so look to whom you befriend (Sunan Abi Dawud and Jami' al-Tirmidhi, hasan). A short supplication from the Sunnah is: O Turner of hearts, make my heart firm upon Your religion (Jami' al-Tirmidhi, hasan). Another is the prayer of the Prophet (saw), O Allah, I seek refuge in You from the evil of my hearing, my sight, my tongue, my heart and my desire (Sunan Abi Dawud, Jami' al-Tirmidhi, graded sahih by al-Albani).
Marriage, fasting, and knowing when to ask for help
The Prophet (saw) said: O young men, whoever among you is able to marry, let him marry, for it lowers the gaze and protects the private parts, and whoever cannot, let him fast, for fasting is a shield for him (Sahih al-Bukhari and Sahih Muslim). Marriage is therefore encouraged for those who are able, but scholars warn that it should not be rushed as a cure, since habits that are not addressed can follow a person into marriage and harm a spouse. Fasting on Mondays and Thursdays, and the white days, reduces appetite and builds self-control. Make a regular habit of reading the Qur'an with its meaning, and think about the Hereafter often, for the Prophet (saw) said that those who fear Allah in secret will be sheltered on the Day when there is no shade except His (Sahih al-Bukhari and Sahih Muslim, the hadith of the seven).
If the habit has become compulsive, if you spend hours, hide it with great distress, or it affects your marriage, studies or work, seek professional help. Psychologists and doctors treat compulsive sexual behaviour and related anxiety and depression, and the Prophet (saw) said that Allah has not sent down a disease without sending down a cure (Sahih al-Bukhari), and told the Bedouin to seek treatment (Sunan Abi Dawud, Jami' al-Tirmidhi). There is no shame in going to someone who is qualified, and many Muslim counsellors work with faith in mind. Some people also need help to repair their marriages after the habit has affected a spouse, and this too is part of putting things right.
Scholars also differ on related matters, such as masturbation, which the majority of the Maliki, Shafi'i and Hanbali jurists have held to be forbidden, citing 23:5 to 7, while the Hanbali school, as Ibn Qudama records in al-Mughni, makes an exception where a person fears falling into adultery, and Ibn Hazm held it disliked but not forbidden. In every case the material that feeds the habit is forbidden, and a person should seek advice from a trusted scholar on his situation.
Conclusion
Stopping is a journey, not an event. Repent sincerely, lower the gaze, remove the triggers, replace the habit with good company and worship, ask Allah constantly for firmness, and use medical and counselling help when needed. Allah has promised that those who strive for Him will be guided to His paths (29:69), and no fall is too great to be forgiven for the one who returns.
References
Qur'an: 17:32, 23:5 to 7, 24:30 to 31, 29:69, 39:53.
Sahih al-Bukhari and Sahih Muslim: advice to young men on marriage and fasting; the one who is forgiven unless he exposes his sins; the seven shaded by Allah. Sunan Abi Dawud, Jami' al-Tirmidhi, Sunan Ibn Majah: the second glance; the best sinners repent often.
Ibn al-Qayyim, al-Jawab al-Kafi (al-Da' wa'l-Dawa'); al-Nawawi, Riyad al-Salihin; Ibn Qudama, al-Mughni.
Ibn Kathir, Tafsir al-Qur'an al-'Azim.