Musnad Ahmad 300
Grading supplied with this record: Sahih (Darussalam) [ al Bukhari (1) and Muslim (1907)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
"Alqamah bin Waqqas al Laithi said that he heard
"Umar bin al-Khattab addressing the people, and he said: I heard the Messenger of Allah (ﷺ) say: “Action is but by intention and each person will have but that which he intended. So whoever migrated for the sake of Allah and His Messenger, then his migration was for the sake of Allah and His Messenger, whoever migrated for some worldly purpose or for the sake of a woman whom he could marry, his migration was for the purpose for which he migrated.”
Full reference and source
Musnad Ahmad 300 Arabic/English book : Book 2, Hadith 300
View source on Sunnah.com (opens in a new tab)