Quick answer
A bedtime phone lock app blocks your distracting apps from a set time each night until Fajr, so late-night scrolling cannot eat your sleep and your Fajr. Sunnah Lock schedules that night block on iPhone and Android, blocks the websites and extra browsers too, and a person you trust holds the code so you cannot lift it at 1 AM. It is free to download.
I make Sunnah Lock, the app this guide recommends. This is practical advice, not a fatwa. For a ruling on your own situation, ask a scholar you trust.
Why lock your phone at night?
Most of what goes wrong on a phone goes wrong late at night: the scroll that runs past midnight, the video that leads somewhere it should not, and the alarm for Fajr that you sleep through because you slept at 2 AM. A night block fixes all three with one setting.
How to lock apps from bedtime until Fajr
- Download Sunnah Lock from the App Store or Google Play.
- Choose what goes dark: social media, short videos, YouTube, games, and every browser you do not need. Block them as whole apps and websites.
- Set the night block from your bedtime, or straight after Isha, until just after Fajr.
- Leave the essentials open: calls, your alarm, and your Qur'an app.
- Let someone you trust set the code, so the block cannot be lifted at 1 AM.
What time should the block start?
- Adults: 30 to 60 minutes before you want to be asleep, so the last thing you do is not scroll.
- Teenagers: earlier, and with the phone charging outside the bedroom.
- Children: see our kids phone bedtime schedule for a full routine.
End the block just after Fajr, not at sunrise, so the first thing you do in the morning is pray, not check your phone.
Make the lock hold
Every bedtime limit you set yourself can be undone by you at midnight. So hand that decision to someone else:
Let them set the code that protects your Sunnah Lock blocks. Without that code, blocks cannot be removed or switched off and the app cannot be deleted, so a weak moment has nowhere to go. You never see the code, and you never need to.
A spouse, parent or close friend all work. Ask them to make you wait a day if you ever ask for the code.
Add these habits
- Charge the phone across the room, or outside the bedroom, so the alarm makes you get up.
- Read or recite instead. Keep a mushaf or a book by the bed for the minutes you would have scrolled.
- Sleep after Isha. The night block makes an early night the easy choice.
Which setup should you pick?
You scroll in bed and miss Fajr: a night block on social and video apps from 30 minutes before bed until after Fajr.
Late nights are when you slip: add adult-content blocking and block every extra browser. Read a porn blocker you can't turn off.
You lift your own blocks: let someone you trust set the code.
Frequently asked questions
Is there an app that locks my phone at night?
Yes. Sunnah Lock schedules a night block on the apps you choose, from bedtime until Fajr, websites and extra browsers included. It works on iPhone and Android and is free to download.
Can I still use my alarm during a bedtime block?
Yes. Block the apps that keep you up, like social media, videos and games, and leave your alarm and calls open.
What time should a bedtime phone block end?
Just after Fajr, so the first thing you do in the morning is pray rather than check your phone.
How do I stop myself lifting the block at night?
Let someone you trust set the code that protects your Sunnah Lock blocks. Without it, blocks cannot be removed or switched off and the app cannot be deleted.
Does Sunnah Lock work on iPhone and Android?
Yes. Sunnah Lock works on iPhone and Android, and every step in this guide works the same way on both.
Is Sunnah Lock free?
Sunnah Lock is free to download on iPhone and Android. Some features need a paid plan.
The bottom line
Nights are where the phone does the most damage. Block it from bedtime until Fajr, keep the alarm, and give the code to someone you trust.
Sunnah Lock works on iPhone and Android. It is free to download on Google Play and the App Store, and some features need a paid plan.
Keep reading
- a Ramadan phone plan for 2027
- the best parental control app for Muslim parents
- Qustodio alternatives for Muslim families
Sleep on time, wake for Fajr
Distracting apps, websites and extra browsers blocked from bedtime until Fajr, with a code someone you trust holds. Works on iPhone and Android, free to download.