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

‘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’.  

Related Quranic Verses

Say: ‘My Lord has enjoined justice, and that you set your whole selves [to Him] at every time and place of prayer, and call on Him, sincere in your faith in Him alone. As it was He who brought you into being in the first instance, so also [to Him] you will return:

(7: 29)

Pray to God, then, sincere in your faith in Him alone, however hateful this may be to the unbelievers.

(40: 14)

To anyone who desires a harvest in the life to come, We shall grant an increase in his harvest; whereas to the one who desires a harvest in this world, We shall give a share of it, but he will have no share in the life to come.

(42: 20)

He who leaves his home, fleeing from evil unto God and His Messenger, and is then overtaken by death, his reward is reserved for him with God. God is much-forgiving, ever-merciful.

(4: 100)

It is God who has created death as well as life, so that He may put you to a test to show who of you is best in conduct. He alone is the Almighty, Much-Forgiving.

(67: 2)

Hadiths projects