Can I take sleeping pills as a Muslim?

Yes. You can take sleeping pills that a doctor or pharmacist recommends. Sleep is a blessing, and Islam wants you to look after your body. Just use them as directed, avoid misuse and plan ahead so you can still wake up for Fajr.
Sleep is a gift from Allah
When a Companion was praying all night and fasting every day, the Prophet ﷺ told him: "offer prayers and also sleep at night, as your body has a right on you" (Sahih al-Bukhari 1975). Getting enough sleep isn't laziness. It's giving your body its right.
If anxiety, depression, pain or stress keeps you awake, treating that insomnia is part of caring for yourself, and medication can be one way to do it.
Medicine, not intoxication
Islam forbids intoxicants. The Prophet ﷺ said: "Every intoxicant is Khamr and every intoxicant is forbidden" (Sahih Muslim 2003). Sleeping pills used at the right dose are meant to make you drowsy, not high, so scholars treat them as medicine. The line is crossed when someone takes them to get a buzz, mixes them with alcohol or takes more than prescribed.
- Over-the-counter aids: antihistamine sleep aids and melatonin are generally fine to use as directed.
- Prescription pills: some are habit-forming. Use them only as your doctor says, usually short-term.
- Don't stop suddenly: if you've used them for a while, ask your doctor how to taper.
What about Fajr?
A common worry is sleeping through Fajr. The Prophet ﷺ said that the pen is lifted from three people, including "a sleeper till he awakes" (Sunan Abi Dawud 4403). If you genuinely oversleep despite trying, you pray Fajr as soon as you wake up, and you're not sinful.
Still, plan ahead: take the pill early enough to get a full night's sleep, set loud alarms or ask a family member to wake you. See Can I still sleep in on weekends as a Muslim?
Sunnah habits that help sleep
Medication works best alongside good habits:
- Wudu before bed: many people find it calming.
- Bedtime adhkar: recite Ayat al-Kursi and the last three surahs. See What should I say before sleeping?
- Screens off: put your phone away well before sleep.
- Calm worry with dua: when your mind races, turn to Allah. See What dua can I say when I feel anxious?
- Sleeping pills used as directed are allowed.
- Your body has a right to rest.
- Misuse or mixing with alcohol isn't allowed.
- Plan for Fajr, and make it up if you oversleep.
People also ask
Can I get treatment for bipolar disorder as a Muslim?
Yes. Mood stabilizers, other prescribed medicine and therapy are allowed. Bipolar disorder is a medical condition, not a spiritual failing.
Read the full answer →Can I use medical cannabis for anxiety as a Muslim?
It depends. Most scholars don't allow THC for anxiety when alternatives exist, while pure CBD is viewed more leniently. Here's the detail.
Read the full answer →Can I take antidepressants as a Muslim?
Yes. Prescribed antidepressants are medicine, not intoxicants, and Islam encourages treatment. Taking them doesn't mean your faith is weak.
Read the full answer →Can I talk to a counselor of the opposite gender?
Yes, when there's a real need. Most scholars allow it, like seeing a doctor. Keep it professional and avoid real seclusion where you can.
Read the full answer →Is going to therapy a lack of faith in Allah?
No. Therapy is a means, and using means is part of tawakkul. The Prophet ﷺ told people to seek treatment. Here's how faith and therapy fit.
Read the full answer →