Bayan Al-Hadith › Sahih Muslim › The Book on Government
Sahih Muslim 1907aصحيح مسلم 1907a
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ بْنِ قَعْنَبٍ، حَدَّثَنَا مَالِكٌ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ مُحَمَّدِ، بْنِ إِبْرَاهِيمَ عَنْ عَلْقَمَةَ بْنِ وَقَّاصٍ، عَنْ عُمَرَ بْنِ الْخَطَّابِ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِنَّمَا الأَعْمَالُ بِالنِّيَّةِ وَإِنَّمَا لاِمْرِئٍ مَا نَوَى فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ فَهِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا أَوِ امْرَأَةٍ يَتَزَوَّجُهَا فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ " .
It has been narrated on the authority of Umar b. al-Khattab that the Messenger of Allah (ﷺ) said: (The value of) an action depends on the intention behind it. A man will be rewarded only for what he intended. The emigration of one who emigrates for the sake of Allah and His Messenger (ﷺ) is for the sake of Allah and His Messenger (ﷺ) ; and the emigration of one who emigrates for gaining a worldly advantage or for marrying a woman is for what he has emigrated.
Grading
Sahih (authentic by the consensus of hadith scholars)
Chain of narrators
عبد الله بن مسلمة ← مالك بن أنس بن مالك ← يحيى بن سعيد بن قيس ← محمد بن إبراهيم بن الحارث ← علقمة بن وقاص بن محصن ← عمر بن الخطاب بن نفيل
Abdullah ibn Maslama → Malik ibn Anas ibn Malik → Yahya ibn Sa'id ibn Qays → Muhammad ibn Ibrahim ibn al-Harith → Alqama ibn Waqqas ibn Mihsan → Umar bin Al-Khattab