Core Reader
40 Hadiths Reader 📖
Commentaries
Hadith 1: Actions & Intentions 📜 Hadith 2: Hadith of Jibreel ✨ Great Commentaries Guide 📚 40 Hadith Tradition 🏛️
Sciences & Guides
Biography of Imam an-Nawawi 🖋️ Foundations of Islam ⚖️ Hadith Sciences & Terminology 🔍 Memorization Guide 🧠 Living the 40 Hadiths 🌱
Platform & Policies
About the Initiative ℹ️ Scholarly Studies FAQ ❓ Contact & Recitation Reports ✉️ Privacy Policy 🛡️ Terms of Service 📄

Commentary on Hadith 1: Actions are by Intentions

شرح حديث: إِنَّمَا الأَعْمَالُ بِالنِّيَّاتِ — أصل الأعمال وقاعدة الدين العظمى
بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ
❖ ❖

When Imam Yahya ibn Sharaf an-Nawawi set out to assemble the most foundational sayings of the Prophet Muhammad ﷺ, he placed this sublime tradition at the very inception of his compilation. In doing so, he followed an unbroken chain of classical scholars—foremost among them Imam Muhammad ibn Ismail al-Bukhari in his Sahih and Imam Abdur-Rahman ibn Mahdi—who routinely inaugurated their works with this specific narration. It serves as both a methodological gatekeeper and an existential reminder: before a single line of sacred knowledge is acquired, transmitted, or enacted, the human heart must interrogate its hidden interior motive.

The Text of the Prophetic Tradition (Al-Matn) Hadith 1
عَنْ أَمِيرِ الْمُؤْمِنِينَ أَبِي حَفْصٍ عُمَرَ بْنِ الْخَطَّابِ رَضِيَ اللهُ عَنْهُ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ: «إِنَّمَا الأَعْمَالُ بِالنِّيَّاتِ، وَإِنَّمَا لِكُلِّ امْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ فَهِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا أَوِ امْرَأَةٍ يَنْكِحُهَا فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ».
On the authority of the Leader of the Believers, Abu Hafs 'Umar ibn al-Khattab (may Allah be pleased with him), who said: I heard the Messenger of Allah ﷺ say: “Actions are judged only by intentions, and every person will have only what he intended. Thus, he whose migration was for the sake of Allah and His Messenger, his migration was for Allah and His Messenger; and he whose migration was to achieve some worldly benefit or to take a woman in marriage, his migration was for that to which he migrated.”
Narrated by al-Bukhari (1, 54, 2529, 3898, 5070, 6689, 6953) and Muslim (1907).

1. The Remarkable Transmission (Isnad) of Hadith 1

From the viewpoint of the science of Hadith terminology (Mustalah al-Hadith), the transmission history of this tradition is one of the most astonishing in all of Islamic scholarship. Although this hadith has achieved the status of universal fame (Tawatur) in its practical application and later dispersal, its early transmission tree is entirely solitary (Gharib Fard) through four successive historical generations:

Generation Transmitter Biographical Note & Transmission Status
Companion (Sahabi) 'Umar ibn al-Khattab (RA) The second Caliph. Only 'Umar narrated this text directly from the Prophet ﷺ from the pulpit (Minbar) in Medina.
Senior Successor (Tabi'i) 'Alqamah ibn Waqqas al-Laythi The sole narrator who preserved and transmitted this narration directly from 'Umar ibn al-Khattab.
Mid Successor (Tabi'i) Muhammad ibn Ibrahim at-Taymi The sole narrator who received and transmitted this tradition directly from 'Alqamah.
Junior Successor (Tabi'i) Yahya ibn Sa'id al-Ansari The celebrated jurist and judge of Medina. He was the sole narrator from Muhammad ibn Ibrahim at-Taymi.
The Explosion (Intishar) 200+ Scholars from Yahya From Yahya ibn Sa'id al-Ansari, more than two hundred distinct narrators—including Malik, Sufyan ath-Thawri, Sufyan ibn 'Uyaynah, and Hammad ibn Zayd—transmitted the hadith across the Islamic world.

Al-Hafiz Ibn Hajar al-'Asqalani notes in Fath al-Bari that while many hadith critics surveyed potential alternative companion chains for this hadith (such as through Abu Sa'id al-Khudri or Ali ibn Abi Talib), none of those alternative routes met the rigorous verification criteria of Sahih. The pristine, solitary path of 'Umar through Yahya ibn Sa'id is the authentic golden thread that anchored the entire body of Islamic jurisprudence.

2. Linguistic and Syntactic Analysis of the Text

The Prophetic phraseology employs high Arabic eloquence (Fasahah) marked by structural compression and profound semantic depth. Classical grammarians and jurists analyzed three foundational elements:

A. The Particle of Restriction: Innama (إِنَّمَا)

In Arabic rhetoric (Balaghah), the compound word إِنَّمَا is composed of the intensifying particle إِنَّ fused with the preventative مَا (called Ma al-Kaffah). Its grammatical function is Al-Hasr wal-Qasr—meaning strict exclusivity or restriction. It establishes what is affirmed while completely negating everything else. Hence, the sentence strictly denotes: "Deeds are evaluated, validated, and rewarded by intentions, and by absolutely nothing else."

B. The Ellipsis / Deleted Predicate (Taqdir al-Mahdhuf)

In the sentence إِنَّمَا الأَعْمَالُ بِالنِّيَّاتِ, the subject (Mubtada') is "the actions" (al-A'mal), connected by the preposition bi (بـ) to "the intentions" (an-Niyyat). In classical Arabic syntax, this prepositional phrase requires a deleted predicate (Khabar Mahdhuf). The jurists differed on the implied meaning:

  • The Hanafi School: Posits that the implied word is Kamal (perfection) or Thawab (reward). They interpret: "Actions are rewarded or perfected only by intentions." Consequently, in Hanafi jurisprudence, the physical act of purification (such as Wudu) is legally valid for removing impurity even without an explicit niyyah, though it lacks spiritual reward.
  • The Shafi'i, Maliki, and Hanbali Schools: Posit that the implied word is Sihhah (validity) or I'tibar Shar'i (legal existence in the Sacred Law). They interpret: "Actions are legally valid only by intentions." Hence, acts of ritual worship (Salah, Sawm, Zakah, Wudu, Tayammum) are completely null and void without an accompanying intention.

Why Did the Prophet ﷺ Repeat the Clause?

The Prophet ﷺ stated first: "Actions are only by intentions", and then immediately followed: "And every person will have only what he intended." Imam an-Nawawi and Ibn Rajab explain that this is not redundant repetition (Takrar). The first clause establishes that every deed is necessarily driven by a motive (its formal validity and moral reality), whereas the second clause establishes that the spiritual retribution, reward, or punishment matches the exact specific interior intention of the doer.

3. The Dual Functions of Niyyah in Sacred Law

In the classical taxonomies of the Fuqaha (jurists) and the 'Ulama al-Qulub (scholars of the heart), Niyyah serves two profoundly distinct structural objectives:

  1. Distinguishing Habit from Worship (Tamyiz al-'Adah 'an al-'Ibadah): An individual may submerge their body into cool water on a sweltering afternoon merely to cool down (a habitual, biological impulse: 'Adah). Another person may perform the identical physical submersion to remove major ritual impurity (Ghusl, an act of sacred worship: 'Ibadah). The physical movements are identical; it is solely the internal orientation of the heart (Niyyah) that transmutes a physical routine into a heavenly act drawing divine grace.
  2. Distinguishing Tiers and Categories of Worship (Tamyiz Maratib al-'Ibadah): A person stands, bows, and prostrates for two units of prayer. That two-rak'ah prayer could be an optional voluntary prayer (Sunnah), a prayer of greeting the mosque (Tahiyyat al-Masjid), a prayer of repentance (Tawbah), or the obligatory dawn prayer (Fard al-Fajr). Only the specific determination within the consciousness at the opening Takbir establishes which legal reality takes place.

4. The Myth of "The Emigrant of Umm Qays"

Many later commentators and popular preaching circles frequently mention that this hadith was uttered because a man migrated from Mecca to Medina solely to marry a woman named Umm Qays, earning him the nickname Muhajir Umm Qays.

However, rigorous hadith critics—including Imam an-Nawawi, al-Hafiz Ibn Rajab al-Hanbali, and al-Hafiz Ibn Hajar—have clarified the historical nuance. While the incident of a man migrating to marry a woman did indeed take place (narrated by Said ibn Mansur and at-Tabarani with an authentic chain from Ibn Mas'ud), there is no authentic chain of transmission establishing that the Prophet ﷺ uttered this universal declaration because of that particular incident. Rather, the Prophet ﷺ enunciated this foundational axiom as a comprehensive universal principle (Jawami' al-Kalim) delivered from the pulpit to establish the eternal benchmark for all human conduct until the end of time.

«هَذَا الحَدِيثُ ثُلُثُ العِلْمِ، وَيَدْخُلُ فِي سَبْعِينَ بَابًا مِنَ الفِقْهِ»
“This hadith constitutes one-third of all sacred knowledge, and it enters into seventy distinct chapters of Islamic jurisprudence.”
— Imam Muhammad ibn Idris ash-Shafi'i (RA)

Imam Ahmad ibn Hanbal explained why ash-Shafi'i deemed it "one-third of knowledge": Islam revolves around three foundational hadiths that regulate all human existence:

  • Hadith 1: “Actions are by intentions” — regulates the interior movements of the heart and consciousness.
  • Hadith 5: “Whoever introduces into this affair of ours that which is not part of it will have it rejected” — regulates the exterior conformity of actions to the Sunnah.
  • Hadith 6: “The lawful is clear and the unlawful is clear, and between them are ambiguous matters” — regulates the ethical boundaries of consumption and social interaction.

5. The Spiritual Alchemy: Converting Mundane Life into Worship

One of the most liberating truths elucidated by Ibn Rajab in Jami' al-'Ulum wal-Hikam is that through the mastery of intention, the believer can transform the totality of earthly existence into continuous devotions ('Ibadah).

When a believer eats nutritious food with the intention of sustaining physical vitality to perform prayers and care for their dependents; when a believer sleeps early with the intention of waking for Fajr or Qiyam al-Layl; when a believer goes to work in business, engineering, medicine, or teaching with the intention of avoiding unlawful begging, providing halal sustenance for their family, and serving society—those mundane biological and economic activities are recorded upon their heavenly scale as righteous deeds.

Al-Fudayl ibn 'Iyad on Pure & Correct Deeds

Reflecting upon Allah's words in Surah al-Mulk: “That He might test you as to which of you is best in deed” [67:2], the great ascetic al-Fudayl ibn 'Iyad explained: “The deed must be the most sincere (akhlisuhu) and the most correct (aswabuhu). If a deed is sincere but not correct, it is not accepted. If it is correct but not sincere, it is not accepted. It is accepted only when it is both sincere and correct: sincere means it is done purely for Allah, and correct means it conforms to the Sunnah of the Messenger ﷺ.”

6. Practical Blueprints for Cultivating Sincerity (Ikhlas)

The scholars of Tazkiyah (spiritual purification) laid down systematic practices to safeguard one's intentions from the corrupting intrusion of Riya' (minor ostentation) and Sum'ah (seeking worldly fame):

  1. The Triple Inspection: Check the heart at three critical stages of every righteous deed:
    • Before the deed: Why am I undertaking this? Is it for divine pleasure, or to impress human onlookers?
    • During the deed: If praised while performing it, does my demeanor change? Consciously banish the desire for human approval.
    • After the deed: Keep the deed concealed. Avoid the urge to boast, broadcast, or leverage it for social capital.
  2. Nurturing Hidden Righteous Deeds (Khabi'ah Min 'Amal Salih): Imam ash-Shafi'i advised: “A believer should ensure that between himself and Allah, he possesses a treasury of hidden righteous deeds of which no spouse, parent, child, or close friend is aware.” Secret charity, private night prayers, and unpublicized fasting serve as impenetrable fortresses protecting sincerity.
  3. Rejecting the Satanic Trap of Inaction: Al-Fudayl ibn 'Iyad warned of a dangerous psychological trap: “Abandoning deeds out of fear of what people might say is itself ostentation (Riya'), and performing deeds for the sake of people is idolatry (Shirk). True sincerity is that Allah grants you safety from both.” Never abandon a righteous act because the devil whispers that you are acting insincerely; rather, perform the act and redouble your plea to Allah for pure intentions.

Conclusion

Hadith 1 of Imam an-Nawawi’s Forty is not merely an academic lesson in Islamic jurisprudence; it is an eternal spiritual mirror. Every action we perform in this temporal world—from the grandest sacrifice to the quietest whisper—is weightless dust unless it is animated by sincere devotion to the Creator. In the words of Imam an-Nawawi: “Whoever understands the depth of this hadith will recognize that the purification of intention is the master key to spiritual salvation, intellectual clarity, and divine acceptance.”