(45) باب هِجْرَةُ النَّبِيِّ صلى الله عليه وسلم وَأَصْحَابِهِ إِلَى الْمَدِينَةِ
Narrated `Umar:
I heard the Prophet (ﷺ) saying, "The reward of deeds depends on the intentions, so whoever emigrated for the worldly benefits or to marry a woman, his emigration was for that for which he emigrated, but whoever emigrated for the Sake of Allah and His Apostle, his emigration is for Allah and His Apostle." (IT)
Reference (IT): Sahih al-Bukhari 3898 (IT)
In-book reference (IT): Book 63, Hadith 124 (IT)
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 5, Book 58, Hadith 238 (IT)