Narrated Omar bin Al-Khattab: I heard Allah’s Messenger, peace be upon him, saying, “The reward of deeds depends upon the intentions and every person will get the reward according to what he has intended. So whoever emigrates for worldly benefits or for a woman to marry, his emigration will be for what he emigrated for.”
[1: 1- O.B. Sahih Al-Bukhari)

Narrated Abu Moosa: The news of the migration of the Prophet, peace be upon him, reached us while we were in Yemen. So we set out as Muhajir towards him. We were my two brothers and I. I was the youngest of them, and one of the two was Abu Burda, and the other, Abu Ruhm. Our total number was 53. We got on board a boat and our boat took us to Negus in Ethiopia. There we met Ja’afar bin Abi Talib and stayed with him. Then we all came (to Madinah) and met the Prophet, peace be upon him, at the time of the conquest of Khaybar. Some of the people of the boat used to say to us, “We have migrated before you.”

Asma bint Umais, who was one of those who had come with us, came as a visitor to Hafsah, the wife of the Prophet, peace be upon him. She had migrated alongwith those other Muslims who migrated to Negus. Omar came to Hafsah while Asma bint Umais was with her. Omar, on seeing Asma said, “Who is this?” She said, “Asma bint Umais.” Omar said, “Is she the Ethiopian” Is she seafaring lady?” Asma replied, “Yes.” Omar said, “We have migrated before you (people of the boat), so we have more right than you over Allah’s Messenger, peace be upon him.” On that Asma became very angry and said, “No by Allah, while you were with Allah’s Messenger, peace be upon him, who was feeding the hungry ones amongst you, and advised the ignorant amongst you. We were in the far off land of Ethiopia and all that was for the sake of Allah and (then) for His Messenger, peace be upon him. By Allah, I will neither eat any food nor drink anything till I inform Allah’s Messenger, peace be upon him, of all that you have said.

There we were harmed and frightened. I will mention this to the Prophet, peace be upon him, and ask him (about it). By Allah, I will not tell a lie or curtail your saying or add something to it.” So when the Prophet, peace be upon him, came, she said, “O Allah’s Prophet! Omar has said so-and-so.” The Prophet, peace be upon him, said, “He (i.e. Omar) has not got more right than you people over me, as he and his companions have (the reward of) only one migration. You, the people of the boat, have (the reward) of two migrations.”
(5: 539(A)- O.B. Sahih Al-Bukhari)