What does Islam say about anxiety and depression?

The short answer

Islam treats worry and sadness as real human experiences that even prophets went through, not as proof of weak faith or a punishment. The Quran and Sunnah offer real comfort, such as dua, prayer, remembrance of Allah and the promise of ease after hardship, and the Prophet ﷺ also told people to seek medical treatment. If you are in crisis or thinking of harming yourself, please contact your local emergency services or a crisis line now.

Explanation

If you are struggling, you are not a bad Muslim, and you are not alone. The Quran describes Prophet Yaqub (AS) grieving so deeply for his son that his eyes turned white, and he said, "I only complain of my suffering and my grief to Allah" 1. Allah told the Prophet ﷺ, "We know that you are saddened by what they say" 2. Sadness sat in the hearts of the best of people.

The Prophet ﷺ regularly asked Allah for protection "from worry and grief" 3. He would not have taught a dua against something that never happens to believers. And he promised that no Muslim is struck by hardship, illness, "grief or even mental worry" without some of their sins being wiped away by it 4. Your pain is seen, and it counts.

What helps, from the texts:

  • Remembrance of Allah. "By the remembrance of Allah hearts are assured" 5. Short, regular dhikr can steady you.
  • Hope. "Indeed, with hardship [will be] ease", said twice 6. The hard season is not the whole story.
  • Treatment. When people asked the Prophet ﷺ whether they should use medical treatment, he said yes, "for Allah has not made a disease without appointing a remedy for it" 7. Seeing a doctor or a qualified therapist for anxiety or depression follows this Sunnah. It is not a lack of trust in Allah.

If it feels unbearable. The Prophet ﷺ taught that no one should wish for death because of a hardship, and that a person who feels they must should say instead, "O Allah! Keep me alive as long as life is better for me" 8. If you have thoughts of ending your life or harming yourself, please contact local emergency services or a crisis line right now, and tell someone you trust. Reaching out is an act of taking the means Allah has provided, and your life is precious to Him.

The evidence

  1. 1
    Quran Yusuf · 12:84–86

    Yaqub (AS) grieved deeply for Yusuf and complained of his grief only to Allah.

    وَتَوَلَّىٰ عَنۡهُمۡ وَقَالَ يَٰٓأَسَفَىٰ عَلَىٰ يُوسُفَ وَٱبۡيَضَّتۡ عَيۡنَاهُ مِنَ ٱلۡحُزۡنِ فَهُوَ كَظِيمࣱ‏ ۝٨٤ قَالُواْ تَٱللَّهِ تَفۡتَؤُاْ تَذۡكُرُ يُوسُفَ حَتَّىٰ تَكُونَ حَرَضًا أَوۡ تَكُونَ مِنَ ٱلۡهَٰلِكِينَ ۝٨٥ قَالَ إِنَّمَآ أَشۡكُواْ بَثِّي وَحُزۡنِيٓ إِلَى ٱللَّهِ وَأَعۡلَمُ مِنَ ٱللَّهِ مَا لَا تَعۡلَمُونَ ۝٨٦

    84 And he turned away from them and said, "Oh, my sorrow over Joseph," and his eyes became white from grief, for he was [of that] a suppressor 85 They said, "By Allah, you will not cease remembering Joseph until you become fatally ill or become of those who perish 86 He said, "I only complain of my suffering and my grief to Allah, and I know from Allah that which you do not know

  2. 2
    Quran Al-An'aam · 6:33

    Allah knew the Prophet ﷺ was saddened by what people said.

    قَدۡ نَعۡلَمُ إِنَّهُۥ لَيَحۡزُنُكَ ٱلَّذِي يَقُولُونَۖ فَإِنَّهُمۡ لَا يُكَذِّبُونَكَ وَلَٰكِنَّ ٱلظَّٰلِمِينَ بِـَٔايَٰتِ ٱللَّهِ يَجۡحَدُونَ ۝٣٣

    We know that you, [O Muhammad], are saddened by what they say. And indeed, they do not call you untruthful, but it is the verses of Allah that the wrongdoers reject

  3. 3
    Hadith Sahih al-Bukhari 6369
    Sahih Bukhari

    The Prophet ﷺ sought refuge in Allah from worry and grief.

    Narrated Anas bin Malik:The Prophet (ﷺ) used to say, "O Allah! I seek refuge with You from worry and grief, from incapacity and laziness, from cowardice and miserliness, from being heavily in debt and from being overpowered by (other) men." (See Hadith No)

    العربية

    حَدَّثَنَا خَالِدُ بْنُ مَخْلَدٍ، حَدَّثَنَا سُلَيْمَانُ، قَالَ حَدَّثَنِي عَمْرُو بْنُ أَبِي عَمْرٍو، قَالَ سَمِعْتُ أَنَسًا، قَالَ كَانَ النَّبِيُّ صلى الله عليه وسلم يَقُولُ ‏ "‏ اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْهَمِّ وَالْحَزَنِ، وَالْعَجْزِ وَالْكَسَلِ، وَالْجُبْنِ وَالْبُخْلِ، وَضَلَعِ الدَّيْنِ، وَغَلَبَةِ الرِّجَالِ ‏"‏‏.‏

  4. 4
    Hadith Sahih Muslim 2573
    Sahih Muslim

    Discomfort, illness, grief and even mental worry expiate a believer's sins.

    Abu Sa'id and abu Huraira reported that they heard Allah's Messenger (ﷺ) as saying:Never a believer is stricken with discomfort, hardship or illness, grief or even with mental worry that his sins are not expiated for him

    العربية

    حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو كُرَيْبٍ قَالاَ حَدَّثَنَا أَبُو أُسَامَةَ، عَنِ الْوَلِيدِ بْنِ، كَثِيرٍ عَنْ مُحَمَّدِ بْنِ عَمْرِو بْنِ عَطَاءٍ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي سَعِيدٍ، وَأَبِي، هُرَيْرَةَ أَنَّهُمَا سَمِعَا رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏ "‏ مَا يُصِيبُ الْمُؤْمِنَ مِنْ وَصَبٍ وَلاَ نَصَبٍ وَلاَ سَقَمٍ وَلاَ حَزَنٍ حَتَّى الْهَمِّ يُهَمُّهُ إِلاَّ كُفِّرَ بِهِ مِنْ سَيِّئَاتِهِ ‏"‏ ‏.‏

  5. 5
    Quran Ar-Ra'd · 13:28

    Hearts find rest in the remembrance of Allah.

    ٱلَّذِينَ ءَامَنُواْ وَتَطۡمَئِنُّ قُلُوبُهُم بِذِكۡرِ ٱللَّهِۗ أَلَا بِذِكۡرِ ٱللَّهِ تَطۡمَئِنُّ ٱلۡقُلُوبُ ۝٢٨

    Those who have believed and whose hearts are assured by the remembrance of Allah. Unquestionably, by the remembrance of Allah hearts are assured

  6. 6
    Quran Ash-Sharh · 94:5–6

    With hardship comes ease, stated twice.

    فَإِنَّ مَعَ ٱلۡعُسۡرِ يُسۡرًا ۝٥ إِنَّ مَعَ ٱلۡعُسۡرِ يُسۡرࣰ ا ۝٦

    5 For indeed, with hardship [will be] ease 6 Indeed, with hardship [will be] ease

  7. 7
    Hadith Sunan Abi Dawud 3855
    Sahih graded by Al-Albani

    The Prophet ﷺ told people to use medical treatment, for Allah made a remedy for every disease except old age.

    Narrated Usamah ibn Sharik: I came to the Prophet (ﷺ) and his Companions were sitting as if they had birds on their heads. I saluted and sat down. The desert Arabs then came from here and there. They asked: Messenger of Allah, should we make use of medical treatment? He replied: Make use of medical treatment, for Allah has not made a disease without appointing a remedy for it, with the exception of one disease, namely old age

    العربية

    حَدَّثَنَا حَفْصُ بْنُ عُمَرَ النَّمَرِيُّ، حَدَّثَنَا شُعْبَةُ، عَنْ زِيَادِ بْنِ عِلاَقَةَ، عَنْ أُسَامَةَ بْنِ شَرِيكٍ، قَالَ أَتَيْتُ النَّبِيَّ صلى الله عليه وسلم وَأَصْحَابُهُ كَأَنَّمَا عَلَى رُءُوسِهِمُ الطَّيْرُ فَسَلَّمْتُ ثُمَّ قَعَدْتُ فَجَاءَ الأَعْرَابُ مِنْ هَا هُنَا وَهَا هُنَا فَقَالُوا يَا رَسُولَ اللَّهِ أَنَتَدَاوَى فَقَالَ ‏ "‏ تَدَاوَوْا فَإِنَّ اللَّهَ عَزَّ وَجَلَّ لَمْ يَضَعْ دَاءً إِلاَّ وَضَعَ لَهُ دَوَاءً غَيْرَ دَاءٍ وَاحِدٍ الْهَرَمُ ‏"‏ ‏.‏

  8. 8
    Hadith Sahih al-Bukhari 5671
    Sahih Bukhari

    Do not wish for death because of a calamity; ask Allah to keep you alive while life is better for you.

    Narrated Anas bin Malik:The Prophet (ﷺ) said, "None of you should wish for death because of a calamity befalling him; but if he has to wish for death, he should say: "O Allah! Keep me alive as long as life is better for me, and let me die if death is better for me

    العربية

    حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا ثَابِتٌ الْبُنَانِيُّ، عَنْ أَنَسِ بْنِ مَالِكٍ ـ رضى الله عنه ـ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ لاَ يَتَمَنَّيَنَّ أَحَدُكُمُ الْمَوْتَ مِنْ ضُرٍّ أَصَابَهُ، فَإِنْ كَانَ لاَ بُدَّ فَاعِلاً فَلْيَقُلِ اللَّهُمَّ أَحْيِنِي مَا كَانَتِ الْحَيَاةُ خَيْرًا لِي، وَتَوَفَّنِي إِذَا كَانَتِ الْوَفَاةُ خَيْرًا لِي ‏"‏‏.‏

This answer was compiled with the help of AI, using only the verified texts shown here. Every reference links to its source. If you find a mistake, please report it. Updated 2026-09-24

Report an issue

Tell us what is wrong. Every report is read.

What is the problem?