The nuclear forty
On the authority of the Commander of the Faithful, Abu Hafs
Omar bin Al-Khattab, may God be pleased with him, said
I heard the Messenger of God, may God bless him and grant him peace, say
Actions are based on intentions
But each person gets what he intended
Whoever migrated to God and His Messenger
So his migration went to God and His Messenger
Whoever emigrated for this world will attain it
Or a woman to marry
So he migrated to what he migrated to
Narrated by Al-Bukhari and Muslim
This hadith shows that the basis for accepting work
It is the intention
Outward deeds are like prayer or charity
It is not correct and acceptable
Unless it is sincere to God
It also explains that the human reward
It will be according to his intention
Two people may do the same work
But one of them rents and the other doesn't
Because of the difference in intention
Example
Whoever migrates in search of God’s satisfaction will be rewarded
He who immigrated for worldly interests
Perfection or marriage
He only gets what he intended
Without the reward of the afterlife