Omar (may Allah be pleased with him), reported that
the Messenger of Allah (صلى الله عليه وسلم (said: Actions are based on
intentions, and everyone will rewarded according to
their intention. Whoever’s migration was to Allah and
His Messenger, then their migration is to Allah and His
Messenger, but whoever’s migration was for some
parts of worldly life that they wished to acquire, or for
a woman to marry, then their migration was for
whatever they migrated for.