Mishkat al-Masabih
Mishkat al-Masabih 1
عَنْ عُمَرَ بْنِ الْخَطَّابِ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّمَا الْأَعْمَال بِالنِّيَّاتِ وَإِنَّمَا لكل امْرِئ مَا نَوَى فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ فَهِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ وَمَنْ كَانَتْ هِجْرَتُهُ إِلَى دُنْيَا يُصِيبُهَا أَوِ امْرَأَةٍ يَتَزَوَّجُهَا فَهجرَته إِلَى مَا هَاجر إِلَيْهِ»
ʿUmar ibn al-Khattab, may Allah be pleased with him, reported that the Messenger of Allah ﷺ said: ‘Actions are only by intentions, and each person will have only what he intended. Whoever’s migration is to Allah and His Messenger, then his migration is to Allah and His Messenger; and whoever’s migration is for some worldly benefit he seeks or a woman he wishes to marry, then his migration is for that for which he migrated.’