عَنْ عُمَرَ بْنِ الخَطَّابِ قَالَ: قَالَ رَسُولُ اللهِ ﷺ: «إِنَّمَا الْأَعْمَالُ بِالنِّيَّةِ. وَإِنَّمَا لِامْرِئٍ مَا نَوَى. فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللهِ وَرَسُولِـهِ، فَهِجْرَتُهُ إِلَى اللهِ وَرَسُولِـهِ. وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا، أَوِ امْرَأَةٍ يَتَزَوَّجُهَا، فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ» متفق عليه.

‘Umar ibn al-Khaṭṭāb narrated saying that God’s Messenger (peace be upon him) said: 

1. Actions are but by intention 

2. And every man shall have but that which he intended.  

3. Thus, he whose migration is [intended] for God and His Messenger, his migration is for God and His Messenger,  

4. And he whose migration is for the achievement of some worldly benefit or for taking some woman in marriage, his migration is for that for which he migrated’.  

Hadiths projects