How do I deal with insomnia as a Muslim?

Yes, there's help: combine the Prophet's ﷺ bedtime Sunnah with good sleep habits, and see a doctor if it lasts. Islam treats sleep as a gift from Allah, not a luxury. Wudu, a calm bedtime dua and a steady routine can help a lot. If you've struggled for weeks, insomnia is a real health problem worth treating.
Sleep is a blessing, not laziness
Some new Muslims feel guilty for needing rest, especially when they hear about night prayer. But Allah describes sleep as one of His gifts:
Your body has a right over you. Sleeping well helps you pray, work and be kind to the people around you.
The Prophet's ﷺ bedtime routine
These Sunnah habits are simple and naturally calming:
- Make wudu before bed and lie down on your right side. The Prophet ﷺ taught this along with a short dua of handing your affairs to Allah (Sahih al-Bukhari 6311).
- Recite the last three surahs: each night he would recite Al-Ikhlas, Al-Falaq and An-Nas into his cupped hands, blow lightly, and wipe over his body, three times (Sahih al-Bukhari 5017).
- Let the dua be your last words: it marks a clear end to the day. For the full wording, see What should I say before sleeping?
Sleep habits that support the Sunnah
- Keep a regular wake time, even on weekends. Fajr can actually help anchor your body clock.
- Put the phone away 30-60 minutes before bed. Blue light and scrolling keep the brain alert.
- Watch caffeine after mid-afternoon, including tea and energy drinks.
- Get out of bed if you can't sleep after about 20 minutes. Read Quran quietly in dim light or do gentle dhikr, then try again.
- Take a short nap earlier in the day if you need one, but keep it under 30 minutes.
If you're worried about Fajr after a bad night, set an alarm, pray, and then go back to sleep if you need to. That's allowed. See Can I still sleep in on weekends as a Muslim?
When to see a doctor
If you have trouble sleeping at least three nights a week for several weeks, or you snore loudly and wake up exhausted, talk to your doctor. Insomnia often comes with anxiety, depression, pain or sleep apnea, and treating the cause matters. Therapy for insomnia (CBT-I) works well and is completely halal. Seeking treatment is part of the Sunnah, not a lack of trust.
- Sleep is a gift from Allah and your body's right.
- Wudu, the right side and bedtime dua are Sunnah.
- Good sleep habits work together with the Sunnah.
- Ongoing insomnia deserves a doctor's attention.
People also ask
How do I cope with a breakup as a Muslim?
Let yourself hurt, go no-contact where you can, and trust Allah may be protecting you. Islam offers comfort and hope for better.
Read the full answer →How do I deal with grief as a Muslim?
Let yourself grieve and turn to Allah. Crying isn't weak faith: the Prophet wept for his son. Lean on others and say the dua of loss.
Read the full answer →How do I stop overthinking as a Muslim?
Do your part, leave the rest to Allah and drop the "if only" loop. Istikhara, dhikr and simple habits can quiet a busy mind.
Read the full answer →How do I deal with fear of death as a Muslim?
Fearing death is normal. Islam turns that fear into hope through good thoughts of Allah, steady deeds and help when it becomes anxiety.
Read the full answer →How do I heal from trauma as a Muslim?
Yes, healing from trauma is possible. Combine trauma-focused therapy with your faith: ease comes with hardship, and you can heal at your own pace.
Read the full answer →