Imam al-Bukhari opened his Sahih with a single hadith about intention, and Imam al-Nawawi placed it first in his collection of forty hadith. Few narrations are treated as so foundational. This article explains what it says, how authentic it is, and what scholars draw from it.
The narration
Umar ibn al-Khattab (may Allah be pleased with him) reported that the Messenger of Allah ﷺ said, in meaning: actions are judged only by intentions, and every person will have what he intended. So whoever migrated for Allah and His Messenger, his migration is for Allah and His Messenger; and whoever migrated for worldly gain or to marry a woman, his migration is for that which he migrated.
The Arabic opening is innama al-a'malu bin-niyyat. The text above is a paraphrase of the meaning, not a quotation of a particular translation; consult the sources for the exact wording.
Authenticity and sources
- Reported in Sahih al-Bukhari, no. 1, and in several other places in the same book.
- Reported in Sahih Muslim, no. 1907.
- Also reported in the Sunan collections, including those of al-Tirmidhi, al-Nasa'i and Ibn Majah.
It is graded sahih and is agreed upon (muttafaq alayh) by al-Bukhari and Muslim. Scholars note that it reaches the narrator Yahya ibn Sa'id al-Ansari through a single line from Umar, and then became widely transmitted after him. The hadith scholars of the community accepted it without dispute.
Meaning
Intention gives actions their value
The scholars explain that intention (niyyah) is the purpose of the heart. Two people can perform the same outward act and receive different outcomes because their intentions differ. Abd al-Rahman ibn Mahdi is reported to have said that this hadith should be placed at the beginning of every chapter of knowledge, because it touches every deed.
The example of migration
The Prophet ﷺ illustrated the principle with hijrah, migration. Two people may travel the same road in the same year. One travels seeking Allah and His Messenger, and the other seeks some worldly gain or a marriage. Their outward act is identical, while their reward differs. Some commentaries attach a particular story about a man who migrated to marry a woman; scholars note that the chain for that story is not firmly established, and the teaching of the hadith does not depend on it.
Sincerity is a command in the Quran
The same theme appears in the Quran. In Surah al-Bayyinah (98:5), believers are described as having been commanded to worship Allah, sincere to Him in religion. See Quran 98:5.
What it does not mean
- A good intention does not make a forbidden act permissible. Scholars distinguish an act being valid and permitted from the intention behind it. Both are required for deeds of worship: a sincere heart and a method that follows the Sunnah.
- Intention is of the heart. Scholars, including many jurists, say that it is not required to say it aloud; the details of how this applies to specific acts of worship are discussed in fiqh, and the schools of law have somewhat different details. Consult a qualified scholar for rulings on particular acts.
Practical lessons for daily life
- Renew your intention before ordinary acts. Eating to have strength for worship, working to provide for your family, and studying to benefit others are ordinary acts that can become acts of worship through a sincere purpose.
- Check your motives regularly. It is easy to begin for Allah and drift toward wanting praise. Pause and re-set the intention.
- Be gentle in judging others. We judge by outward actions, and the intention is known to Allah.
- Do not delay good deeds waiting for a perfect intention. Begin, and ask Allah for sincerity.
Closing note
This article summarizes widely accepted explanations and is not a legal ruling. For questions about specific acts of worship, please consult a qualified scholar. A related theme of character is explored in our article on patience (sabr) in the Quran and Sunnah.