Sayyiduna Umar bin Khattab (may Allah be pleased with him) narrates: The Noble Prophet (peace and blessings of Allah be upon him) said: "Actions are judged by intentions, and every person will get only what he intended. So whoever's migration was for Allah and His Messenger, his migration will be counted for Allah and His Messenger. And whoever's migration was for worldly gain or to marry a woman, then his migration will be counted towards that for which he migrated."
Hadith Referenceصحیح ابن حبان / كتاب البر والإحسان / 388
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح أبي داود» (1911): ق.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط مسلم، عبد الله بن هاشم الطوسي ثقة من رجال مسلم، ومن فوقه ثقات على شرطهما.
Sayyiduna Umar bin Khattab (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) said: "The reward of deeds depends upon the intentions and every person will get what he intended. So whoever emigrated for Allah and His Messenger, then his emigration is for Allah and His Messenger. And whoever emigrated for worldly gain or to marry a woman, then his emigration is for that for which he emigrated."
Hadith Referenceصحیح ابن حبان / كتاب البر والإحسان / 389
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح: ق - انظر ما قبله.فضيلة الشيخ العلّامة شُعيب الأرناؤوطوالد عمر بن سعيد لم نقف له على ترجمة، وقد ذكره في «تهذيب الكمال» في ترجمة عيسى بن يونس السبيعي فيمن روى عنه، ومن فوقه ثقات على شرطهما.