روضة RawdahLibrary of How to Muslim
  1. Rawdah
  2. Articles
  3. How do you purify your heart in Islam? The diseases of the heart and their cures

Heart and character

How do you purify your heart in Islam? The diseases of the heart and their cures

Every heart can be cleaned, because it was made clean to begin with: here is how to read the symptoms and start the cure this week.

You purify your heart in Islam (tazkiyah) by naming each disease honestly, cutting off what feeds it, and replacing it with the virtue that heals it, through repentance, remembrance of Allah and small, repeated acts. The Qur'an makes it the measure of success: "he has succeeded who purifies it, and he has failed who corrupts it" (ash-Shams 91:9-10).

Chapter 4 of Being Muslim, on spiritual refinement, gives one of the clearest beginner's maps of this work. We have chapter notes on it. Here is that map, checked against the Qur'an, Sunnah and classical scholars.

Why the heart matters most

The Prophet ﷺ said: "There is a piece of flesh in the body: if it is sound, the whole body is sound, and if it is corrupt, the whole body is corrupt. Truly, it is the heart" (Sahih al-Bukhari 52; Sahih Muslim 1599). He also said that Allah does not look at your forms or your wealth, but at your hearts and your deeds (Sahih Muslim 2564). On the Day of Judgement, "neither wealth nor children will benefit, only one who comes to Allah with a sound heart (qalbun salim)" (ash-Shu'ara 26:88-89).

This inner work is what the hadith of Jibril calls ihsan: "that you worship Allah as if you see Him, for though you do not see Him, He sees you" (Sahih Muslim 8).

Where we start: fitrah, the nafs and the heart

No original sin. Islam teaches that we are born with a fitrah, a nature that leans towards the good. Allah "inspired the soul with its wickedness and its righteousness" (91:8), so purification is recovery, not reinvention.

Three players. The nafs (ego) wants its appetites. Reason is meant to lead it. The heart is where they meet and where the decision is made. Al-Ghazali opens the third volume of his Ihya' 'Ulum ad-Din with exactly this, in the book on the marvels of the heart, before turning to the diseases themselves.

The balanced middle. Refinement does not mean killing a trait but bringing it to its middle. Anger is the classic example: in excess it destroys, yet a believer who feels nothing at injustice has lost something too.

Seven doors. Everything reaches the heart through the tongue, eyes, ears, hands, feet, stomach and private parts. Guarding these doors is how the outward law shapes the inner self. Al-Ghazali gives a whole book to "breaking the two desires" of stomach and private parts.

The diseases of the heart: sign, root and a cure for this week

Rage. Sign: you say things you would never say calm. Root: pride wounded. Cure: when a man asked for advice again and again, the Prophet ﷺ answered each time, "Do not become angry" (Sahih al-Bukhari 6116), and said the strong one is "the one who controls himself while in anger" (Sahih al-Bukhari 6114). This week, when it rises, seek refuge in Allah from Shaytan (Sahih al-Bukhari 3282) and sit down, or lie down if it persists (Sunan Abi Dawud 4782, graded sahih by al-Albani). Keep du'as for anger on your phone.

Envy (hasad). Sign: someone else's blessing feels like your loss. Root: forgetting that Allah's provision is not a fixed pie. Cure: "None of you truly believes until he loves for his brother what he loves for himself" (Sahih al-Bukhari 13). Each time envy stirs, make du'a for that person by name, out loud if you can. "Do not envy one another," he ﷺ said (Sahih al-Bukhari 6064; Sahih Muslim 2563).

Suspicion. Sign: you read the worst into people's words. Root: projecting your own faults. Cure: "Avoid much assumption; some assumption is sin. And do not spy or backbite" (al-Hujurat 49:12), and "beware of suspicion, for suspicion is the most false of speech" (Sahih al-Bukhari 6064). Look for an excuse before an accusation, and when you catch a bad thought, keep it behind the tongue door.

Arrogance and vanity. Sign: you cannot take correction. Root: thinking your gifts are your own. Cure: study the Prophet's ﷺ humility and manners and do one small task this week that nobody will credit you for.

Showing off (riya'). Sign: worship feels heavier when no one is watching. Root: craving people's praise. Cure: in a hadith qudsi, Allah says He is free of need of any partner, and whoever does a deed for Him and someone else, He leaves him with that partner (Sahih Muslim 2985). Keep one good deed this week completely secret. Imam al-Mawlud's poem Matharat al-Qulub, translated by Hamza Yusuf (who wrote Being Muslim's foreword) as Purification of the Heart, treats each of these diseases this way.

Heedlessness and avoiding the thought of death. Sign: weeks pass with no thought of meeting Allah. Root: the race for more. Cure: "Remember often the destroyer of pleasures," meaning death (Jami' at-Tirmidhi 2307, graded hasan sahih gharib by at-Tirmidhi and hasan sahih by al-Albani). Read the mind maps of at-Takathur and al-'Asr.

The virtues that heal

The chapter also covers seven virtues: repentance, taqwa, detachment, hope balanced with fear, tawakkul, gratitude and contentment. Three of them come with direct promises:

  • Remembrance: "By the remembrance of Allah hearts find rest" (ar-Ra'd 13:28), and "remember Me; I will remember you" (al-Baqarah 2:152). For a hard heart, start with the morning and evening adhkar.
  • Gratitude: "If you are grateful, I will surely increase you" (Ibrahim 14:7). Name three blessings before you sleep.
  • Tawakkul: "Whoever relies upon Allah, He is sufficient for him" (at-Talaq 65:3).

Where a struggle feels clinical rather than spiritual, read mental health in Islam too; tazkiyah does not replace proper care.

A note on two sayings about character

The Prophet ﷺ said, "I was sent only to perfect good character" (Musnad Ahmad 8952, graded sahih with a strong chain by the Darussalam editors and sahih by al-Albani; Imam Malik reports it without a chain in al-Muwatta', and scholars accept it through its supporting routes). By contrast, the popular line "My Lord taught me manners and perfected my manners" has no established chain, as Ibn Taymiyyah noted and our book notes flag. Its meaning is true; the wording is not a sound hadith.

Close with tawbah: four steps

Every cure ends where our chapter notes do, with repentance:

  1. Remorse for what you did.
  2. Stopping it now.
  3. Resolving not to return.
  4. Putting it right if someone else was harmed.

If you fall again, return again: I keep relapsing and My iman is gone are written for that place, and istighfar gives you the words. The goal is the purpose of life itself: to meet Allah with a sound heart.

Common questions

How do I purify my heart in Islam?

Purifying the heart (tazkiyah) means identifying each spiritual disease, such as anger, envy or showing off, cutting off what feeds it through the senses, and replacing it with its opposite virtue. Its tools are repentance, remembrance of Allah, gratitude and small consistent deeds. The Qur'an says whoever purifies the soul has succeeded (91:9).

What are the main diseases of the heart in Islam?

The map in Being Muslim, which follows classical scholars such as al-Ghazali, covers rage, envy, suspicion, arrogance and vanity, showing off (riya'), and heedlessness, including avoiding the thought of death. Each has a sign you can notice, a root such as pride or love of praise, and a cure from the Qur'an and Sunnah you can practise this week.

How can I stop showing off (riya')?

Remember that whoever does a deed for Allah and someone else, Allah leaves him with that partner (Sahih Muslim 2985). Watch for the sign: worship that feels heavier when no one is watching, because the heart is craving people's praise. Then keep at least one good deed completely secret this week.

How do I soften a hard heart?

The Qur'an says hearts find rest in the remembrance of Allah (13:28). Regular dhikr, especially the morning and evening adhkar, remembering death (Jami' at-Tirmidhi 2307), reflecting on Surahs at-Takathur and al-'Asr, and sincere repentance with its four steps all soften the heart over time. Start small and stay consistent.

Sources

  • Qur'an, ash-Shams 91:7-10, https://quran.com/91:7-10
  • Qur'an, ash-Shu'ara 26:88-89, https://quran.com/26:88-89
  • Qur'an, al-Hujurat 49:12, https://quran.com/49:12
  • Qur'an, ar-Ra'd 13:28, https://quran.com/13:28
  • Qur'an, al-Baqarah 2:152, https://quran.com/2:152
  • Qur'an, Ibrahim 14:7, https://quran.com/14:7
  • Qur'an, at-Talaq 65:3, https://quran.com/65:3
  • Sahih al-Bukhari 52 (the piece of flesh is the heart), sahih, https://en.tohed.com/hadith/bukhari/52
  • Sahih Muslim 1599 (same hadith), sahih, https://en.tohed.com/hadith/muslim/1599
  • Sahih Muslim 2564 (Allah looks at your hearts and deeds, not your forms and wealth), sahih, https://en.tohed.com/hadith/muslim/2564
  • Sahih Muslim 8 (hadith of Jibril on ihsan), sahih, https://en.tohed.com/hadith/muslim/8
  • Sahih al-Bukhari 6116 ("Do not become angry"), sahih, https://en.tohed.com/hadith/bukhari/6116
  • Sahih al-Bukhari 6114 (the strong one controls himself in anger), sahih, https://en.tohed.com/hadith/bukhari/6114
  • Sahih al-Bukhari 3282 (seeking refuge from Shaytan when angry), sahih, https://en.tohed.com/hadith/bukhari/3282
  • Sunan Abi Dawud 4782 (sit, then lie down, when angry), sahih per al-Albani and Zubayr 'Ali Za'i, https://en.tohed.com/hadith/abu-dawud/4782
  • Sahih al-Bukhari 13 (love for your brother what you love for yourself), sahih, https://en.tohed.com/hadith/bukhari/13
  • Sahih al-Bukhari 6064 (beware of suspicion; do not envy one another), sahih, https://en.tohed.com/hadith/bukhari/6064
  • Sahih Muslim 2563 (same hadith), sahih, https://en.tohed.com/hadith/muslim/2563
  • Sahih Muslim 2985 (hadith qudsi: Allah is free of need of partners), sahih, https://en.tohed.com/hadith/muslim/2985
  • Jami' at-Tirmidhi 2307 (remember the destroyer of pleasures), hasan sahih gharib per at-Tirmidhi, hasan sahih per al-Albani, https://en.tohed.com/hadith/tirmidhi/2307
  • Musnad Ahmad 8952 ("I was sent only to perfect good character"), sahih with a strong chain per the Darussalam editors, https://en.tohed.com/hadith/musnad-ahmad/8952
  • Al-Bukhari, al-Adab al-Mufrad 273 (same hadith), sahih per al-Albani (as-Silsilah as-Sahihah 45), https://en.tohed.com/hadith/al-adab-al-mufrad/273
  • Malik, al-Muwatta' (Yahya), 1635 (same meaning, reported without a chain), chain weak but sahih through supporting reports, https://en.tohed.com/hadith/muwatta-yahya/1635
  • "My Lord taught me manners", no established chain per Ibn Taymiyyah, Ahadith al-Qussas 78, https://en.tohed.com/hadith/majmua-daeef/23
  • Al-Ghazali, Ihya' 'Ulum ad-Din, vol. 3 (Rub' al-Muhlikat): Kitab Sharh 'Aja'ib al-Qalb, Kitab Kasr ash-Shahwatayn, Kitab Dhamm al-Ghadab wal-Hiqd wal-Hasad, Kitab Dhamm al-Jah war-Riya', Kitab Dhamm al-Kibr wal-'Ujb, https://shamela.ws/book/9472/748
  • Imam al-Mawlud, Matharat al-Qulub, translated with commentary by Hamza Yusuf as Purification of the Heart: Signs, Symptoms and Cures of the Spiritual Diseases of the Heart (Starlatch, 2004), https://openlibrary.org/works/OL15906066W

More articles

Keep climbing

Grow in your knowledge of Islam

Five places to go next, from a page you can read today to a full course.