The rightly guided Caliph, Sayyiduna Umar bin Khattab (may Allah be pleased with him), heard the Messenger of Allah (peace and blessings be upon him) say: "All actions depend upon intentions, and every person will get the result according to his intention. So, whoever migrates for worldly gain or to marry a woman, then his migration will be for that for which he migrated."