It is narrated on the authority of Amirul Mu’minin, Abu Hafs ‘Umar bin al-Khattab, radiyallahu ‘anhu, who said: I heard the Messenger of Allah, sallallahu ‘alayhi wasallam, say:
“Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his migration is to Allah and His Messenger; but he whose migration was for some worldly thing he might gain, or for a wife he might marry, his migration is to that for which he migrated.”
BACKGROUND
This hadith was said by the Prophet ﷺ at the time when a man emigrated from Makkah to Madinah during the Hijrah for the sake of marrying someone and not for the sake of Islam.
It is considered to be one of the greatest hadiths in Islam.
Al-Imam al-Shafie said: This Hadith is one third of the knowledge of Islam; related to about 70 topics of Fiqh.
Al-Imam Ahmad (with reference to al-Imam al-Shafie’s statement) said: Islam is based on three fundamentals (all are among the 40 hadiths ):
- which is stated above.
- “Whosoever introduces into this affair of ours (i.e. Islam) something that does not belong to it, it is to be rejected.”
- “Truly, what is lawful is evident, and what is unlawful is evident, and in between the two are matters which are doubtful which many people do not know