The 30-Day Plan to Break Free from Porn and Masturbation
A week-by-week Islamic plan to stop watching porn and masturbating: phone setup, salah as an anchor, fasting, and a daily checklist you can actually keep.
If you have already tried the 7-day gaze reset from our first article, you know something important now: shutting one door helps, but thirty days needs more than one door shut. If you have not read it yet, that is fine too — you can start here and pick it up along the way. This article is the fuller plan. Four weeks, one theme each week, a daily checklist you can actually keep, and a weekly review to catch what is working before you lose another month to guessing.
Read this once at the start, then stop reading and start doing. You do not need to memorize the whole month. You only need to know what today asks of you.
Before you start: two honest expectations
First, thirty days will not erase a habit that took years to form. It will start to build a different one, and a different habit is what actually protects you long after day 30 ends. Do not expect to feel “fixed.” Expect to feel more in control, more familiar with your own triggers, and closer to Allah than you were on day one.
Second, some of you will slip inside these thirty days. Plan for it now, while you are calm, instead of discovering it in a panic on day 14. A slip does not erase the days before it and it does not disqualify you from the days after it. We will come back to exactly what to do when it happens.
The shape of the month
Each week has one main job. You keep last week’s habits running while you add this week’s.
Week 1: Close the doors
This is the ground floor everything else stands on. If you have not done it yet, do it in the first three days:
- Set your phone’s content filter with a trusted person holding the PIN.
- Remove or mute every account and app that has ever been a trigger.
- Keep the phone out of your room at night.
- Practise the sudden-glance rule: notice, turn away, move on (Sahih Muslim 2159).
- Say your ready dua the moment an urge starts, not after you have already looked twice.
None of this is new if you read our gaze and phone-setup guides — this week is simply making sure it is actually in place, not just something you meant to do.
Week 2: Anchor the day to salah
An idle hour is when most urges grow. Salah breaks the day into five pieces, so no gap gets too long or too empty.
The Prophet ﷺ gave a simple comparison: “Just see, can anything of his filthiness remain on any one of you if there were a river at his door in which he washed himself five times daily? … That is like the five prayers by which Allah obliterates sins” (Sahih Muslim 667). This week, treat the five prayers as five resets, not five checkboxes.
- Pray each prayer as close to its time as you can, ideally in congregation if that is possible for you.
- Before each prayer, make wudu with attention — actual wudu, not a rushed splash.
- After each prayer, sit for thirty seconds before you stand up. Ask yourself what you need to get through the next few hours.
- Use the time between Maghrib and Isha, and the time right after Fajr, as protected windows — no phone, some Quran or dhikr instead.
By the end of this week you should notice your day has a rhythm that did not exist before, and urges have fewer empty hours to grow in.
Week 3: Add fasting to weaken the urge
Fasting is not a punishment here. It is a tool the Prophet ﷺ named directly for this exact struggle: “O young men, whoever among you can afford marriage, let him marry… and whoever cannot, let him fast, for it will diminish his desire” (Sahih al-Bukhari 5066; Sahih Muslim 1400).
You do not need to fast every day this week. A realistic pattern that students and workers can actually sustain:
- Fast Monday and Thursday, following the Sunnah pattern.
- Keep suhoor simple — dates, water, something with protein — so you are not running on empty by Asr.
- Break your fast on time and do not skip Maghrib for food.
- Notice, on your fasting days, whether urges feel different. Many people find them quieter, not gone.
Keep Weeks 1 and 2 running underneath this. Fasting adds to the structure; it does not replace it.
Week 4: Let repetition become identity
By now you are not “trying a challenge.” You are becoming someone who does these five things. The Prophet ﷺ was asked which deeds Allah loves most, and he said: “The most regular and constant, even if it were little” (Sahih al-Bukhari 6465). Allah does not love the version of you that did everything perfectly for ten days and then vanished. He loves the version of you that shows up, small and consistent, for thirty.
This week, resist the urge to add something dramatic. Instead:
- Keep the phone setup, the five prayers, and your fasting days running exactly as before.
- Pick the one habit from the last three weeks that felt hardest, and give it extra attention this week.
- Start thinking about day 31. What from this month is worth keeping forever? (Answer: most of it.)
Your daily checklist
Print this, save it, or write it in a notebook. Do all five every day of the thirty:
- Pray all five prayers on time.
- Keep the phone out of your room at night.
- Say your ready dua the moment an urge starts.
- Do a two-minute nightly review: where did my eyes and mind go today, and what will I do differently tomorrow?
- Check in on the DeenGuard tracker.
Your weekly review
Every seventh night, before you move to the next week, ask yourself:
- Which of the five daily habits did I actually keep, honestly?
- What time of day were my urges strongest this week?
- What triggered them — boredom, loneliness, tiredness, a specific app?
- What is one thing I will change going into next week?
- What is one thing I am grateful to Allah for this week, unrelated to this struggle?
Write the answers down somewhere private. In four weeks you will have a record of your own patterns that no article could ever give you, because it is yours.
If you slip during the thirty days
Say it plainly to yourself: a slip is not the end of the plan. It is a Tuesday that went wrong, in a month that is otherwise moving forward.
Allah says: “Say: O My servants who have transgressed against themselves, do not despair of the mercy of Allah. Indeed, Allah forgives all sins” (Quran 39:53). Read that again if you need to. It was not written for people who never fail. It was written for you, right now, mid-month, mid-struggle.
Do this in the next hour:
- Make wudu and pray two rak’ahs if you can.
- Speak to Allah honestly: name what happened, ask for forgiveness, ask for help not to repeat it.
- Go back to your tracker and restart the counter. Do not wait for Monday.
- Do not throw out the whole plan. Return to today’s checklist tonight, not next week.
If you want the fuller version of this — what to do in the sixty minutes after a slip — read our tawbah article. It was written for exactly this moment.
Why thirty days, and not forever
Thirty days is long enough to notice your own patterns and short enough to actually finish. Allah tells us He does not change the condition of a people until they change what is in themselves (Quran 13:11) — the change has to start with something you actually do, not something you only intend. And He promises that whoever is mindful of Him, He will make a way out for them, and provide for them from where they do not expect (Quran 65:2–3). That way out is often not dramatic. It is a phone left outside a bedroom. A prayer prayed on time. A fast kept on a Thursday. Small, plain, repeated acts that Allah Himself called beloved.
Start today
Do not wait for the first of the month or a Monday. Open the tracker, start day one, and do today’s five-item checklist tonight. Whatever week you are really in — even if it is week one for the fifth time — Allah is not counting your failed attempts against you. He is watching what you do next.
You are not doing this alone, and you are not starting from zero. You are starting from wherever you actually are, which is exactly where Allah meets you.