Riyad as-Salihin · App record 1
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إنما الأعمال بالنيات، وإنما لكل امرىء ما نوى فمن كانت هجرته إلى الله ورسوله فهجرته إلى الله ورسوله، ومن كانت هجرته لدنيا يصيبها، أو امرأة ينكحها فهجرته إلى ما هاجر إليه"
Narrated 'Umar bin Al-Khattab (May Allah be pleased with him), reported:
Messenger of Allah (ﷺ) said, "The deeds are considered by the intentions, and a person will get the reward according to his intention. So whoever emigrated for Allah and His Messenger, his emigration will be for Allah and His Messenger; and whoever emigrated for worldly benefits or for a woman to marry, his emigration would be for what he emigrated for". [Al-Bukhari and Muslim].
Full reference and source
Arabic/English book : Book 1, Hadith 1
View source on Sunnah.com (opens in a new tab)