How to achieve mindfulness in Islam

In the name of Allah, the Gracious, the Merciful

Mindfulness in Islam (muraqabah) is the state of being aware of oneself in relation to Allah. It is the opposite of heedlessness, negligence, and forgetfulness (ghaflah). We all know that we need to be more mindful in our prayers, acts of worship, and daily life, but what exactly can we do to cultivate this positive state of being?

Mindfulness is a skill like any other skill, so it takes practice and self-discipline to strengthen it over the long term. The principal tool for cultivating mindfulness is a specific meditation exercise designed to train ourselves to catch our wandering mind and return it back to Allah. But this practice must be coupled with knowledge of the nature of thought itself, to increase our awareness of how thoughts work and what we can do to better control our reaction to them.

Al-Ghazali explains this meditation as it was practiced in classical Islam:

ثم يخلو بنفسه في زواية مع الاقتصار على الفرائض والرواتب ويجلس فارغ القلب مجموع الهم ولا يفرق فكره بقراءة قرآن ولا بالتأمل في تفسير ولا بكتب حديث ولا غيره بل يجتهد أن لا يخطر بباله شيء سوى الله تعالى فلا يزال بعد جلوسه في الخلوة قائلاً بلسانه الله الله على الدوام مع حضور القلب … وعند ذلك إذا صدقت إرادته وصفت همته وحسنت مواظبته فلم تجاذبه شهواته ولم يشغله حديث النفس بعلائق الدنيا تلمع لوامع الحق في قلبه

Then let him seclude himself in his private nook, limiting himself to the religious obligations and supererogatory acts. Let him sit and empty his heart of every concern: neither scattered thoughts of reciting the Quran, nor pondering over its explanation, nor the books of prophetic traditions, nor anything else. Let him strive to not think of anything concerning his affair except for Allah Almighty, continuing to sit in seclusion while saying the name of Allah constantly, with presence of heart… Upon that, if his intentions are true, his concerns are in order, and his diligence is improved, then he will not gravitate to his base desires and will not be preoccupied with idle self-talk (hadith al-nafs) related to the world. The reality of the Truth will shine in his heart.

Source: Iḥyā’ Ulūm al-Dīn 3/19

In other words, a Muslim should go into their room alone with the intention of silencing the mind from random thoughts and self-talk. This could be done in as little as 5-10 minutes a day. One should focus on Allah as the object of attention, being aware of ourselves in relation to Him, and becoming accustomed to feeling this state of mindfulness. This exercise will not only enrich our spiritual lives, but it will also benefit our physical, mental, and emotional well-being.

Thoughts will begin to emerge during meditation in a five-step process:

  1. Hajis, a sudden fleeting thought.

  2. Khatir, a thought given our attention.

  3. Hadith al-Nafs, self-talk or talking to oneself about the thought.

  4. Ham, decision to act upon the thought.

  5. ‘Amz, determination to act upon the thought.

As we meditate, we are observing our thoughts from a neutral perspective as they unfold during this process. Ideally, we would like to be able to notice our thoughts in the initial stages of hajis and khatir, before they become more developed and we start talking to ourselves. Once the mind begins to wander in this manner, as it naturally will do, one should return to a state of mindfulness by saying the name of Allah or another supplication from the Sunnah.

Sometimes the Prophet (ṣ) would become distracted and forget Allah for a brief moment, so he would ask forgiveness from Allah as a way to anchor his mindfulness and restore his remembrance.

Al-Aghar al-Muzani reported: The Messenger of Allah, peace and blessings be upon him, said:

إِنَّهُ لَيُغَانُ عَلَى قَلْبِي وَإِنِّي لَأَسْتَغْفِرُ اللَّهَ فِي الْيَوْمِ مِائَةَ مَرَّةٍ

Verily, at times there is fog over my heart, so I seek the forgiveness of Allah one hundred times in a day.

Source: Ṣaḥīḥ Muslim 2702, Grade: Sahih

Al-Nawawi commented on this tradition, writing:

قِيلَ الْمُرَادُ الْفَتَرَاتُ وَالْغَفَلَاتُ عَنِ الذِّكْرِ الَّذِي كَانَ شَأْنُهُ الدَّوَامَ عَلَيْهِ فَإِذَا فتَرَ عَنْهُ أَوْ غَفَلَ عَدَّ ذَلِكَ ذَنْبًا وَاسْتَغْفَرَ مِنْهُ

It is said that it means the Prophet (ṣ) had intervals of distraction from remembrance of Allah, as remembrance was his normal state of affairs. When he had a period of inattention or distraction, he would consider that a sin and seek forgiveness for it.

Source: Sharḥ al-Nawawī ‘alá Ṣaḥīḥ Muslim 2702

When we are in mindfulness meditation, we can use similar phrases from the Sunnah – a name of Allah, a supplication, and so on – to return our attention to Allah as soon as we notice our mind wandering. This is called anchoring our mindfulness, because over time our minds will associate these phrases with the feeling of being mindful. Every time we bring back our wandering mind via anchoring, it is like doing a mental push-up. It strengthens our mindfulness as if it were a muscle in the brain. It is as simple as that.

Ibn al-Qayyim describes a way we can practice this type of anchoring in our mindfulness meditation:

وَأَمَّا ذِكْرُ الرِّعَايَةِ فَمِثْلُ قَوْلِ الذَّاكِرِ اللَّهُ مَعِي وَاللَّهُ نَاظِرٌ إِلَيَّ اللَّهُ شَاهِدِي وَنَحْوُ ذَلِكَ مِمَّا يُسْتَعْمَلُ لِتَقْوِيَةِ الْحُضُورِ مَعَ اللَّهِ وَفِيهِ رِعَايَةٌ لِمَصْلَحَةِ الْقَلْبِ وَلِحِفْظِ الْأَدَبِ مَعَ اللَّهِ وَالتَّحَرُّزِ مِنَ الْغَفْلَةِ وَالِاعْتِصَامِ مِنَ الشَّيْطَانِ وَالنَّفْسِ

As for the remembrance of watchfulness, it is like the worshiper saying: Allah is with me, Allah is looking at me, Allah is observing me, and other such words used to strengthen one’s presence with Allah. In it is care for the well-being of the heart, maintaining good manners with Allah, being wary of mindlessness, and seeking protection from Satan and the lower-self.

Source: Madārij al-Sālikīn 2/406

The purpose of meditation is not to suppress our thoughts, as this is impossible and counterproductive. Rather, the goal is to become aware of our thoughts as they arise, observe them, and allow them to drift away as we return our attention to Allah. Thoughts are like waves. They will inevitably appear, but they will go away if you leave them alone. Once you engage them or try to push them away, it only makes the waves more turbulent.

Ibn al-Qayyim likened random thoughts in the wandering mind to pedestrians who will eventually go away if you ignore them:

وَاعْلَمْ أَنَّ وُرُودَ الْخَاطِرِ لَا يَضُرُّ وَإِنَّمَا يَضُرُّ اسْتِدْعَاؤُهُ وَمُحَادَثَتُهُ فَالْخَاطِرُ كَالْمَارِّ عَلَى الطَّرِيقِ فَإِنْ تَرَكْتَهُ مَرَّ وَانْصَرَفَ عَنْكَ

Know that passing thoughts are not harmful. Indeed, they are only harmful if they are sought and engaged. For a thought is like a passerby on the road; if you ignore him, he will pass by and depart from you.

Source: al-Jawāb al-Kāfī 1/157

In this sense, we are not defined by our thoughts and we should not identify ourselves with our thoughts, a realization psychologists call cognitive defusion. Thoughts arise naturally, sometimes from the depths of the ego (nafs) but other times from the inspiration of angels or Satan.

Allah said:


We have created humanity and We know what his soul (nafs) whispers to him. We are closer to him than his jugular vein.

Surat Qaf 50:16


إِنَّ لِلشَّيْطَانِ لَمَّةً بِابْنِ آدَمَ وَلِلْمَلَكِ لَمَّةً فَأَمَّا لَمَّةُ الشَّيْطَانِ فَإِيعَادٌ بِالشَّرِّ وَتَكْذِيبٌ بِالحَقِّ وَأَمَّا لَمَّةُ الْمَلَكِ فَإِيعَادٌ بِالخَيْرِ وَتَصْدِيقٌ بِالحَقِّ فَمَنْ وَجَدَ ذَلِكَ فَلْيَعْلَمْ أَنَّهُ مِنَ اللهِ فَلْيَحْمَدِ اللَّهَ وَمَنْ وَجَدَ الأُخْرَى فَلْيَتَعَوَّذْ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ

Verily, Satan has influence with the son of Adam and the angel has influence. As for the influence of Satan, he promises evil and denies the truth. As for the influence of the angel, he promises goodness and affirms the truth. Whoever finds this goodness, let him know that it is from Allah and let him praise Allah. Whoever finds something else, let him seek refuge in Allah from the accursed Satan.

Then, the Prophet (ṣ) recited the verse:

الشَّيْطَانُ يَعِدُكُمُ الْفَقْرَ وَيَأْمُرُكُم بِالْفَحْشَاءِ وَاللَّهُ يَعِدُكُم مَّغْفِرَةً مِّنْهُ وَفَضْلًا

Satan threatens you with poverty and commands evil, but Allah promises you forgiveness and favor from him. (2:268)

Source: Sunan al-Tirmidhī 2988, Grade: Sahih

Many of our thoughts originate from such external sources in the most literal sense. Evil thoughts encouraging us to sin or terrifying us come from the devilish jinn. Therefore, we should not view them as residing within our essence, nor should we negatively judge ourselves simply for experiencing them.

Based upon this insight, our mindfulness meditation trains us to put distance between ourselves and our thoughts, so that we can better observe them and control our reaction to them. This is called finding the reaction space. If a thought is beneficial, we can pursue it on our own terms. If a thought is harmful, we can ignore it by returning our attention to Allah via anchoring.

Having access to the reaction space is a blessing from Allah, whereas lacking this space give Satan an advantage over us.


التَّأَنِّي مِنَ اللَّهِ وَالْعَجَلَةُ مِنَ الشَّيْطَانِ

Deliberation is from Allah, and recklessness is from Satan.

Source: al-Sunan al-Kubrá 18651, Grade: Hasan

Ta’anni (deliberation) means to be careful and to take one’s time to react properly. ‘Ajalah (recklessness) means to react in a careless, rash, and knee-jerk fashion. As we train ourselves to observe our thoughts in mindfulness meditation, this will help us expand the reaction space and thereby apply appropriate deliberation before we act. It will prevent us from reacting in an extreme way to strong emotional states like anger or grief.

According to some of the early Muslims, learning to be mindful of Allah with regards to our innermost thoughts is the key to earning His protection from evil in the world and the Hereafter.

Al-Qushayri writes:

وَقَالَ بَعْضهم من راقب اللَّه تَعَالَى فِي خواطره عصمه اللَّه تَعَالَى فِي جوارحه

Some of the predecessors said: Whoever is mindful of Allah Almighty in his thoughts, Allah will protect him in his limbs.

Source: al-Risālat al-Qushayrīyah 1/330

In sum, mindfulness of Allah can be cultivated through a specific meditation designed to help us control how we react to our thoughts. The core insights of this practice include knowledge of how thoughts develop, anchoring mindfulness by using supplications to return our attention to Allah, cognitive defusion or dissociating our identity from our thoughts, and expanding the reaction space or the amount of time between thought and reaction. This practice can enrich our spiritual lives, as well as benefit our physical, mental, and emotional well-being.

Success comes from Allah, and Allah knows best.