Hadith 47

Sahih Bukhari

Book 2: Belief

Chapter 41

What is said regarding the statement: "The reward of deeds depends upon the intention and hoping to get rewards from Allah."

باب مَا جَاءَ أَنَّ الأَعْمَالَ بِالنِّيَّةِ وَالْحِسْبَةِ وَلِكُلِّ امْرِئٍ مَا نَوَى

And every person will get the reward according to what he has intended. And this includes faith, ablution, As-Salat, Zakat, Hajj, As-Saum and all the Ahkam (orders) of Allah. Allah تعالى said, "Say: Each one does (deeds) according to Shakilatihi (i.e., his way or his religion or his intentions etc.)..." (V.17:84) And the spending of a man for his family with the intention of having a reward from Allah جل جلاله, will be regarded as alms. And the Prophet ﷺ said, "Jihad and intentions." (meaning — Jihad — to fight for Allah's جل جلاله Cause, and when there is no call for it then at least one should have the intention to take part in Jihad).
فَدَخَلَ فِيهِ الإِيمَانُ وَالْوُضُوءُ وَالصَّلاَةُ وَالزَّكَاةُ وَالْحَجُّ وَالصَّوْمُ وَالأَحْكَامُ. وَقَالَ اللَّهُ تَعَالَى: {قُلْ كُلٌّ يَعْمَلُ عَلَى شَاكِلَتِهِ} عَلَى نِيَّتِهِ. «نَفَقَةُ الرَّجُلِ عَلَى أَهْلِهِ يَحْتَسِبُهَا صَدَقَةٌ». وَقَالَ: «وَلَكِنْ جِهَادٌ وَنِيَّةٌ».
Sahih al-Bukhari 54
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ بْنِ وَقَّاصٍ، عَنْ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ ‏‏.‏
"‏ الأَعْمَالُ بِالنِّيَّةِ، وَلِكُلِّ امْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، فَهِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا، أَوِ امْرَأَةٍ يَتَزَوَّجُهَا، فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ ‏"
'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 Apostle, then his emigration was for Allah and His Apostle. And whoever emigrated for worldly benefits or for a woman to marry, his emigration was for what he emigrated for."