The hadith states that the reward of one's actions depends on their intention. If a person emigrates for the sake of Allah and His Messenger, they will be rewarded accordingly. However, if they emigrate for worldly gain or to marry someone, they will only receive the reward for what they intended to achieve. This hadith emphasizes in intention.