Sahih al-Bukhari · Hadith 1

حَدَّثَنَا الْحُمَيْدِيُّ عَبْدُ اللَّهِ بْنُ الزُّبَيْرِ ، قَالَ : حَدَّثَنَا سُفْيَانُ ، قَالَ : حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ الْأَنْصَارِيُّ ، قَالَ : أَخْبَرَنِي مُحَمَّدُ بْنُ إِبْرَاهِيمَ التَّيْمِيُّ ، أَنَّهُ سَمِعَ عَلْقَمَةَ بْنَ وَقَّاصٍ اللَّيْثِيَّ ، يَقُولُ : سَمِعْتُ عُمَرَ بْنَ الْخَطَّابِ رَضِيَ اللَّهُ عَنْهُ عَلَى الْمِنْبَرِ، قَالَ : سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، يَقُولُ : " إِنَّمَا الْأَعْمَالُ بِالنِّيَّاتِ، وَإِنَّمَا لِكُلِّ امْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى دُنْيَا يُصِيبُهَا أَوْ إِلَى امْرَأَةٍ يَنْكِحُهَا، فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ

Narrated 'Umar bin Al-Khattab: I heard Allah's Messenger (ﷺ) saying, "The reward of deeds depends upon the intentions and every person will get the reward according to what he has intended. So whoever emigrated for worldly benefits or for a woman to marry, his emigration was for what he emigrated for

Narrated by 'Umar bin Al-Khattab

Reflection

Generated to aid study. Not a fatwa — consult a qualified scholar for rulings.

Meaning

This foundational hadith establishes that the value, spiritual validity, and reward of any action in Islam depend entirely on the inner motive (*niyyah*) behind it. Classical scholars explain that intention serves two main functions:

1. Jurisprudential (*Fiqh*): It distinguishes acts of routine habit (*‘adah*) from acts of worship (*‘ibadah*)—for example, taking a shower to cool off versus performing a ritual bath (*ghusl*) for purification—and differentiates specific types of worship from one another, such as obligatory prayers from voluntary ones.

2. Spiritual (*Tazkiyah*): It determines whether an action is performed sincerely for Allah (*ikhlas*) or for worldly gain, recognition, or social standing.

Scholars generally agree that a good deed performed strictly for worldly display yields no spiritual reward in the Hereafter. However, scholars hold nuanced views on mixed intentions—such as someone performing a good deed primarily for Allah while also hoping for a permissible worldly benefit (like health or trade). Many maintain that while the primary spiritual reward remains tied to sincerity for Allah, worldly motives can diminish the ultimate reward depending on what dominates the heart.

Context

Imam al-Bukhari deliberately placed this text as the very first hadith of his *Sahih* collection. Classical commentators, such as Ibn Hajar al-'Asqalani, noted that scholars historically used this placement as a spiritual discipline—reminding themselves and their readers to purify their motives before seeking sacred knowledge.

The statement was delivered by the Prophet (ﷺ) in the context of the *Hijrah* (the historic migration of Muslims from Mecca to Medina to escape persecution). While the *Hijrah* was a major obligation requiring immense sacrifice for Allah, some individuals migrated for personal reasons. Commentators often discuss a report about a man who migrated specifically to marry a woman known as Umm Qays. While scholars debate whether that specific event was the sole cause for this statement or merely an example, the Prophet (ﷺ) used the general principle of migration to illustrate that outward righteousness yields only what the heart truly sought.

Living it today

• Transform daily habits: You can elevate ordinary routines—such as sleeping, eating, exercising, or working a job—into acts of worship simply by holding a righteous intention, such as strengthening your body to worship Allah or providing honest sustenance for your family.

• Pause before acting: Get into the habit of pausing before performing a good deed (like giving charity, speaking kindly, or posting beneficial reminders online) to ask yourself: "Am I doing this for Allah, or for praise and approval?"

• Renew your focus: Intentions can shift during an action. If you feel pride or a desire to show off (*riya'*) creeping in while doing something good, quietly renew your intention in your heart to do it solely for Allah.

• Value quiet deeds: Protect your sincerity by keeping some of your voluntary good deeds entirely private between you and Allah, where no one else can see or praise them.

Please consult a qualified Islamic scholar for guidance regarding specific personal rulings or practical applications in your life.