Musnad Ahmad 168

Umar ibn Alakhatab (RA), part 1

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

Sufyan narrated to us, from Yahya, from Muhammad ibn Ibrahim at-Taymi, from ʿAlqamah ibn Waqqas, who said: I heard ʿUmar say: I heard the Messenger of Allah ﷺ say: "Deeds are only by intention, and each person has only what he intended. So whoever's emigration was to Allah, Mighty and Majestic, his emigration is to that for which he emigrated; and whoever's emigration was for some worldly gain he would get, or a woman he would marry, his emigration is to that for which he emigrated."