“The deeds depends upon the intentions…”

‘Umar bin Al-Khattâb said: I heard Allah’s Messenger u i_. saying, “The reward of deeds depends upon the intentions and every person will get the reward according to what he has intended. So whoever emigrates for worldly benefits or for a woman to marry, his emigration will be for what he emigrated for.[1]

[1] The Prophet said this on the occasion of someone’s emigration from Makka to Al-MadIna which was not for the sake of the Islamic cause but to marry a woman who had stipulated that he should emigrate if he wanted to marry her. Anyhow, this IjadIth implies a general principle, i.e. one is rewarded for his deeds according to his real intentions and not according to his actual deeds which might be good in themselves but were motivated by an ill intention.