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

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

1 – It is narrated on the authority of Amīr al-Mu’minīn Abī Ḥafṣ ‘Umar bin al-Khaṭṭāb (may Allāh be pleased with him) who said: I heard the Messenger of Allāh (peace and blessings of Allāh be upon him) say:

“Indeed, the deeds are considered by the intentions, and a person will get the reward according to his intention. So whoever emigrated for Allāh and His Messenger, his emigration will be for Allāh and His Messenger; and whoever emigrated for worldly benefits or for a woman to marry, his emigration would be for what he emigrated for.”

Reported by the two Imāms of the scholars of ḥadīth, Abū ‘Abdullāh Muḥammad bin Ismā’īl bin Ibrāhīm bin al-Mughīrah bin Bardizba al-Bukhārī [d. 256H] and Abū al-Ḥusain Muslim bin al-Ḥajjāj bin Muslim al-Qushayrī an-Naysābūrī [d. 261H] (may Allāh be pleased with them) in their two ṣaḥīḥs which are the soundest of the compiled books.

• Ṣaḥīḥ Al-Bukhārī (1, 54, 2529, 3898, 5070, 6689 & 6953)
• Ṣaḥīḥ Muslim (1907)
• Sunan Abī Dāwūd (2201)
• Sunan an-Nasā’ī (75, 3437 [3467] & 3794 [3825])
• Sunan at-Tirmidhī (1647)
• Sunan ibn Mājah (EN [4227] – AR [4367])
• Mishkāt al-Maṣābīḥ (1)
• Riyāḍuṣ Ṣāliḥīn (1)