Intention (Niyyah) – The Hidden Axis Upon Which Every Deed Turns
There is a ḥadīth so foundational that Imām al-Bukhārī chose it to open his entire Ṣaḥīḥ, and the scholars of the Ummah have long regarded it as one of the four (or five) aḥādīth around which the whole of the Dīn revolves. The Messenger of Allāh ﷺ said:
«إِنَّمَا الأَعْمَالُ بِالنِّيَّاتِ، وَإِنَّمَا لِكُلِّ امْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ فَهِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا أَوِ امْرَأَةٍ يَنْكِحُهَا فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ»
“Actions are only by intentions, and every person will have only what he intended. So whoever emigrated for Allāh and His Messenger, his emigration was for Allāh and His Messenger. And whoever emigrated to attain some worldly benefit or to marry a woman, then his emigration was for that which he emigrated.”
(Agreed upon – from the narration of ʿUmar ibn al-Khaṭṭāb رضي الله عنه)
This is not a simple reminder about “having a good intention.” It is a precise legal and spiritual principle that governs the acceptance, ranking, and reward of every deed. Ibn Rajab al-Ḥanbalī explains that the ḥadīth establishes two realities at once: the validity of the outward action depends upon the presence of a corresponding intention, and the rank and fruit of that action are determined by the quality and purity of what the heart truly sought. In other words, two people may perform the exact same prayer, give the exact same charity, or speak the exact same words of advice — yet one is raised high in the sight of Allāh while the other leaves with little or nothing, because the secret of the heart differed.
The classical ʿulamāʾ further clarified that niyyah is not merely a fleeting thought at the beginning of an act. It is the sustained orientation of the heart. Ibn al-Qayyim writes that intention is the spirit of the deed; a body without its spirit is lifeless. A person may begin an action for Allāh, yet allow the intention to shift midway toward the praise of people, the comfort of recognition, or the subtle pleasure of feeling righteous. In that moment the spirit begins to leave the body. Conversely, a seemingly ordinary act — earning a lawful income, caring for one’s family, or even resting to regain strength for worship — can be elevated into pure ʿibādah when the heart is consciously directed toward Allāh’s pleasure and the fulfilment of His commands.
This is why the early scholars treated the purification of intention as a lifelong struggle, not a one-time decision. They knew that the heart is constantly exposed to the whispers of riyāʾ (showing off), the desire for status, and the quiet craving to be seen as good. Sincerity is therefore not a static state; it is a repeated returning. Every time the servant notices the intention drifting, he gently brings it back: “This is for You alone, O Allāh.” That continual correction is itself beloved to Allāh, for it demonstrates a heart that is awake and watchful.
So today, before you rise for Salāh, before you speak, before you post, before you work, and even before you rest — pause. Do not rush past the heart. Ask, with honesty and hope: “For whom am I doing this?” If the answer is Allāh, proceed with tranquillity. If the answer is mixed, renew it. And if you forget many times, return many times. The door of renewal is never closed.
May Allāh make our intentions pure, our hearts steadfast upon sincerity, and our deeds a source of light for us on the Day when only what was done for His Face will remain. Āmīn.
—
وصلى الله على نبينا محمد وعلى آله وصحبه وسلم.
Bārakallāhu Fīkum