Same Journey, Same Distance, Two Completely Different Deeds
Among the Muslims who made the difficult hijrah from Makkah to Madinah was a man whose motive wasn't faith at all — he made the journey hoping to marry a woman named Umm Qays. The physical journey he completed was identical to everyone else's: the same distance, the same danger, the same destination. What separated him from the believers walking beside him was invisible to anyone watching. It lived entirely inside his own intention.
The hadith scholars call foundational
The Prophet ﷺ addressed exactly this kind of case directly, in a hadith recorded as the very first entry in Sahih al-Bukhari, narrated by Umar ibn al-Khattab: "Innamal-a'malu bin-niyyat, wa innama likulli imri'in ma nawa" — "Actions are only by intentions, and every person will have only what they intended." He ﷺ continued: "Whoever migrated for Allah and His Messenger, his migration is for Allah and His Messenger. And whoever migrated for some worldly gain he might attain, or for a woman he might marry, his migration is for that to which he migrated." Two men, same road, same risk — and, according to the Prophet ﷺ, two completely different deeds recorded for two completely different reasons.
What the word actually points to
The Arabic word niyyah refers to the intention held in the heart before an act — not a spoken formula, not a performance for anyone watching, but the private motive that gives an action its actual value in Allah's sight. Two people can perform an identical action — the same charity, the same prayer, the same act of patience — and receive entirely different outcomes, because what mattered was never only the visible motion.
A promise for the intention alone
The reach of niyyah extends even further than completed actions. In a hadith recorded in Sahih al-Bukhari and Sahih Muslim, the Prophet ﷺ described how Allah records good intentions that never even become deeds: "If he intended to do a good deed and did not do it, Allah writes it down with Himself as a complete good deed. But if he intended it and did it, Allah writes it down as ten good deeds, up to seven hundred times, or many times more." A sincere intention that never made it past the heart is still recorded as a full good deed — something started only in thought still counted as real.
The warning built into the same principle
The Quran addresses the danger of the opposite case, describing people whose visible worship carries hidden motives. In Surah Al-Ma'un: "Fawaylul-lil-musallin, alladhina hum 'an salatihim sahun, alladhina hum yura'un" — "So woe to those who pray, who are heedless of their prayer, who make a show of their deeds" (107:4-6). The warning isn't aimed at people who skip prayer. It's aimed at people performing it correctly on the outside while doing it for the wrong reason — a caution that the visible act alone was never the point.
Why ordinary moments carry the same weight
Because niyyah lives in the heart rather than the action itself, it can turn almost anything into worship. A person preparing a meal with the intention of feeding their family for Allah's sake, or going to work with the intention of providing lawfully rather than simply chasing money, transforms an ordinary task into something recorded. The deed looks the same from outside either way. What changes everything is the quiet decision made before it, seen by no one but Allah.
Read more from the Quran's own stories
Sincerity of intention runs through many of the Quran's stories — from Ibrahim's willingness to sacrifice for Allah alone, to Yusuf's brothers whose outward actions concealed very different inward motives. Their full stories are told in the free story-style ebooks on this site, covering all 114 surahs in English, Hinglish, and Hindi. No fee, no sign-up — sadaqah jariyah.