Blog / Heart and mind

What does Islam say about mental health?

Islam treats the mind as a trust from Allah, and illness of the mind as illness, not sin. What the Quran and the Sunnah say, how Muslim doctors cared for it a thousand years ago, and the questions of fiqh people ask.

An open Quran lit against a dark background
Photo by Abdulloh Fauzan on Unsplash

Short answer: Islam does not treat mental illness as a sign of weak faith or as a punishment. The Prophet ﷺ said that Allah has not sent down any disease without sending down a cure for it, and he told people to seek treatment. So a Muslim living with anxiety, depression or any other condition should see a doctor or a therapist, and keep up prayer, dua and the Quran alongside it. A person who has lost the use of their mind is not held to account for what they do while they are ill.

If you are struggling right now

Please speak to a doctor or a licensed therapist as well as making dua. If you have thoughts of harming yourself, or you are in danger, call your local emergency number now (911 in the US, 999 in the UK and the UAE). In the US you can also call or text 988, and in the UK you can call Samaritans on 116 123, any time.

The mind in Islam

Muslim jurists such as al-Ghazali and al-Shatibi taught that the sharia protects five things: religion, life, the mind, family lineage and property. The mind (aql) is on that list because it is what makes a person accountable. It is one reason intoxicants are forbidden, and it is why caring for your mental health is not a modern add-on to the deen. It is part of it.

The Quran also speaks openly about the inner life. It names fear, grief, anxiety and despair, and it shows prophets feeling them. It describes human nature honestly:

Human nature

۞ إِنَّ ٱلْإِنسَٰنَ خُلِقَ هَلُوعًا

Innal insaana khuliqa haloo'aa

"Indeed, mankind was created anxious:"

Quran 70:19 · translation by Sahih International

The verse is not blame. It is a description, followed in the next verses by the people who are protected from the worst of it: those who keep up their prayer. That pattern runs through the Quran: it names the struggle, then gives a way through it.

Is mental illness a sign of weak iman?

No. The best of people felt deep distress and said so to Allah. Yaqub grieved for Yusuf for years and said:

Yaqub's grief

قَالَ إِنَّمَآ أَشْكُوا۟ بَثِّى وَحُزْنِىٓ إِلَى ٱللَّهِ وَأَعْلَمُ مِنَ ٱللَّهِ مَا لَا تَعْلَمُونَ

Qaala innamaaa ashkoo bassee wa huzneee ilal laahi wa a'lamu minal laahi maa laa ta'lamoon

"He said, I only complain of my suffering and my grief to Allah, and I know from Allah that which you do not know."

Quran 12:86 · translation by Sahih International

Complaining to Allah is not impatience. When the Companions told the Prophet ﷺ that terrible thoughts came into their minds, thoughts they could not bear to say aloud, he did not call it weak faith. He said: "That is clear faith."1 Scholars explain that hating such thoughts is itself a sign of iman. Many people with obsessive doubts (waswas) find great relief in this hadith.

Every hardship a believer bears also wipes away sins. The Prophet ﷺ said that no tiredness, illness, worry, grief, harm or distress reaches a Muslim, even a thorn that pricks him, without Allah removing some of his sins because of it.2 For more on sadness and the duas for grief, read depression and sadness in Islam.

Seeking treatment is part of the Sunnah

The hadith of cures

مَا أَنْزَلَ اللَّهُ دَاءً إِلاَّ أَنْزَلَ لَهُ شِفَاءً

Mā anzalallāhu dā'an illā anzala lahū shifā'

Allah has not sent down any disease without sending down a cure for it.

Sahih al-Bukhari 5678, from Abu Hurayrah

Some Bedouins asked the Prophet ﷺ whether they should seek treatment. He said: "Yes, servants of Allah, seek treatment, for Allah has not made a disease without making a cure for it," except one, old age.3 Scholars took this as covering every kind of illness, of the body or of the mind.

  • Therapy and counselling are allowed. If you can, find a therapist who respects your faith, but a good therapist of any background is better than none.
  • Prescribed medicine is allowed, and taking it is part of seeking the cure Allah has sent. Ask the pharmacist if you are unsure about an ingredient.
  • Trusting Allah (tawakkul) does not mean refusing treatment. The Prophet ﷺ himself was treated when he was ill, and he told others to seek cures.

Jinn, the evil eye and mental illness

Muslims believe that jinn and the evil eye are real (see jinn in Islam). But most mental illness is illness, and it should be treated as illness. Reciting ruqyah from the Quran, such as Al-Fatiha, Ayat al-Kursi and the last three surahs, is a sunnah, and it can be done alongside medical care, not instead of it.

Be careful of "healers" who charge large fees, who hit or frighten the patient, or who tell you to stop your medicine. None of that comes from the Sunnah, and it can do serious harm.

A thousand years of Muslim care

Muslim physicians wrote about the mind long before modern psychology. Abu Zayd al-Balkhi, a scholar of the ninth and tenth centuries, wrote Masalih al-Abdan wa al-Anfus (The Sustenance of Bodies and Souls), which treats the body and the soul as two sides of health and discusses sadness, fear, anger and obsessive thoughts, with talking cures for each. The great hospitals (bimaristans) of Baghdad, Damascus and Cairo, such as the Nuri hospital founded in 1154 and the Mansuri hospital founded in 1284, had wards for people with mental illness, cared for at public expense.4

The rulings people ask about

Accountability. The Prophet ﷺ said the pen is lifted from three: the sleeper until he wakes, the child until he grows up, and the one who has lost his mind until he recovers.5 A person whose illness takes away their reason is not sinful for what they do in that state. Ordinary anxiety or depression does not take away reason, so prayer and fasting remain due, but Allah knows the weight each person carries and "does not charge a soul except [with that within] its capacity" (Quran 2:286).

Prayers missed during a severe illness.

Hanafi position

If a person loses their reason, through mental illness or unconsciousness, for more than a full day and night (so that more than five prayers pass), the missed prayers are dropped and need not be made up. If it is a day and night or less, they are made up.

Other madhhabs
Shafi'i
Any prayer whose whole time passes while the person has lost their reason is dropped. Making it up is not required.
Maliki
Similar to the Shafi'i view: prayers whose time passed during the loss of reason are not made up.
Hanbali
A person who lost their reason through illness of the mind does not make up. A person who was only unconscious makes up every prayer, as one who slept would.

Fasting. If a doctor advises that fasting will harm you, or your medicine must be taken during the day, you are excused as a sick person, and you make up the days or pay fidya if you will never be able to fast. See the Ramadan fasting rules.

Suicide. The Quran says "do not kill yourselves" (4:29), and taking one's own life is a major sin. Scholars also note that a person overwhelmed by illness may not be fully in control, and that the judgement belongs to Allah, who is Merciful. The janazah prayer is still prayed for a Muslim who died this way. If you are having these thoughts, please use the numbers at the top of this page now.

Habits from the Sunnah that help

  • Prayer as rest. The Prophet ﷺ would say: "Bilal, call the iqamah, and give us rest by it."6 Prayer was his comfort, not a burden.
  • Remembrance. "Unquestionably, by the remembrance of Allah hearts are assured" (13:28). A few minutes of dhikr each day is a habit, not a cure, but it steadies the heart.
  • Talking to someone. After the first revelation, the Prophet ﷺ came home shaking and told Khadijah, "I fear for myself." She comforted him and took him to someone who could help.7 Telling a trusted person is a sunnah.
  • Hope. "For indeed, with hardship [will be] ease. Indeed, with hardship [will be] ease" (94:5 to 6).

Duas for anxiety

The duas the Prophet ﷺ taught for worry and distress, in Arabic with transliteration and meaning.

Open the dua for anxiety

FAQ

Is it haram to see a therapist in Islam?

No. Seeking treatment is part of the Sunnah: the Prophet ﷺ said, "seek treatment, for Allah has not made a disease without making a cure for it" (Abu Dawud 3855). Therapy is a form of treatment.

Is depression a sin in Islam?

No. Depression is an illness, not a sin. Prophets felt deep grief, and every hardship a believer bears wipes away some of his sins (Bukhari 5641).

Can Muslims take antidepressants?

Yes. Taking prescribed medicine is allowed and is part of seeking the cure Allah has sent. If you are unsure about an ingredient, ask your pharmacist or a scholar.

Does the Quran talk about anxiety?

Yes. It says "mankind was created anxious" (70:19), names fear and grief many times, and teaches that hearts find rest in the remembrance of Allah (13:28).

Is OCD or waswas a sign of weak faith?

No. When Companions complained of terrible thoughts, the Prophet ﷺ said "that is clear faith" (Muslim 132). Hating the thoughts is a sign of iman. OCD is also treatable, so see a professional.

Sources

  1. Sahih Muslim 132, from Abu Hurayrah.
  2. Sahih al-Bukhari 5641 and 5642, from Abu Said al-Khudri and Abu Hurayrah.
  3. Sunan Abu Dawud 3855 and Jami at-Tirmidhi 2038, from Usamah ibn Sharik; graded sahih by al-Albani, and hasan sahih by at-Tirmidhi.
  4. On al-Balkhi: Malik Badri, Abu Zayd al-Balkhi's Sustenance of the Soul (International Institute of Islamic Thought, 2013). On the bimaristans: the histories of the Nuri hospital of Damascus and the Mansuri hospital of Cairo.
  5. Sunan Abu Dawud 4398, from Aishah; also 4403, from Ali. Graded sahih by al-Albani.
  6. Sunan Abu Dawud 4985, from a man of Khuza'ah; graded sahih by al-Albani.
  7. Sahih al-Bukhari 3, from Aishah, the beginning of revelation.
  8. On missed prayers during a loss of reason: Hanafi, al-Marghinani, al-Hidayah, chapter on the prayer of the sick; for the other schools, the standard manuals of each.
  9. Quran 70:19, 12:86, 2:286, 4:29, 13:28 and 94:5 to 6, Arabic from the Uthmani text, translation by Sahih International.

The rulings on this page are pending review by the scholars on our team.