It has been narrated on the authority of Umar b. al-Khattab that the Messenger of Allaah (sallAllaahu alayhi wa sallam) said: (The value of) an action depends on the intention behind it. A man will be rewarded only for what he intended. The emigration of one who emigrates for the sake of Allaah and His Messenger (sallAllaahu alayhi wa sallam) is for the sake of Allaah and His Messenger (sallAllaahu alayhi wa sallam) ; and the emigration of one who emigrates for gaining a worldly advantage or for marrying a woman is for what he has emigrated.
|