In the Name of Allâh, the Most Beneficent, the Most Merciful
Actions are judged by intentions
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."
[Al-Bukhari & Muslim]
Actions are judged by intentions
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."
[Al-Bukhari & Muslim]