Hadithcore
Sahih al-Bukhari, 54
sahih

Narrated 'Umar bin Al-Khattab:

Allah's Messenger (ﷺ) said, "The reward of deeds depends upon the intention and every person will get the reward according to what he has intended. So whoever emigrated for Allah and His Messenger, then his emigration was for Allah and His Messenger. And whoever emigrated for worldly benefits or for a woman to marry, his emigration was for what he emigrated for."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ بْنِ وَقَّاصٍ، عَنْ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏

‏ الأَعْمَالُ بِالنِّيَّةِ، وَلِكُلِّ امْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، فَهِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا، أَوِ امْرَأَةٍ يَتَزَوَّجُهَا، فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ ‏

‏‏.‏

References2 variants
In-Book Reference
Book 2, Hadith 47
USC-MSA web (English) reference
Vol. 1, Book 2, Hadith 52 (deprecated numbering scheme)
Sharh · explanationclick to expand
This important hadith represents one of the main principles and foundations of Islamic teaching, to the extent that it was said concerning it that it constitutes one third of knowledge. In this hadith, the Prophet (blessings and peace of Allah be upon him) said: “Actions are but by intentions,” so no prescribed act of worship is valid without being preceded by the intention. “And each person will have what he intended,” so all the Muslim will get from his actions is what he intended thereby. This ruling is general in meaning and applies to all actions, whether they are acts of worship, interactions with others or ordinary actions. Whoever intends by his actions to attain some worldly benefit will gain nothing but that worldly benefit, even if it was an act of worship, and thus he will not attain any reward thereby. Whoever intended by his action to draw closer to Allah (may He be exalted) and to seek His pleasure will attain reward through his deed, even if it was an ordinary action, such as eating or drinking. Then the Prophet (blessings and peace of Allah be upon him) gave some practical examples to explain the impact of intentions on actions. Hence he stated that whoever intended by migrating to obey the command of his Lord, seek His pleasure, and flee for the sake of his faith from persecution, his migration was a kind of hijrah that is prescribed in Islamic teachings and will be accepted by Allah (may He be exalted), and he will be rewarded for it because of his sincere intention. However, the one who migrated in pursuit of some worldly gain or personal objective, such as wealth, trade, or marriage to a beautiful woman, “then his migration was for the purpose for which he migrated,” and he will not attain anything from his migration except that worldly benefit that he intended, and he will not attain any reward for that..
Related hadiths12
Compare isnād across 12 related chains →