Skip to main content
Islamic Portal
Join freeJoin free
Islamic Portal
Explore everything
Theme
Step 1 of 12
8%

Intention: The Hidden Engine of Every Deed

Why Imam an-Nawawi opens with intention, and how niyyah and sincerity decide what a deed is worth before Allah.

  • 12 min
12 min

Two people, one evening

Two colleagues stay late to finish the same report. One wants the team to succeed and the client to be served well. The other wants to be seen by the manager before promotion season. From the outside the evenings look identical: same desk, same spreadsheet, same tired eyes on the train home.

Islam says the two evenings are not the same at all. What separates them is invisible, and it is the subject of this first lesson: intention. This course does not walk through Imam an-Nawawi's forty-two hadith in number order (the site's Learn Hadith Step by Step path does that). Instead, each lesson gathers three or four of his narrations around one theme, so that you see how they light each other up. We begin where he began.

Three words to carry with you

Before we read the evidence, here are the key words you will meet.

  • Niyyah means intention: the purpose in the heart that sets a deed in motion. It is not a sentence you must say aloud; it is the reason you are doing what you do.
  • Ikhlas means sincerity: purifying that intention so that the deed is done for Allah, not to be praised, feared or rewarded by people.
  • Naseehah is often translated as sincere advice, but its root carries the sense of being true and wholehearted towards someone, with no hidden agenda.

Why start here?

Many scholars placed the hadith of intention at the very start of their books, as a reminder to the reader to check their own motive before studying. The site's encyclopedia notes that both al-Bukhari's Sahih and an-Nawawi's Forty open with it. The message to a student is simple: learning itself is a deed, so it too needs a good intention.

Intention changes ordinary things

Intention does not only matter for prayer and fasting. Eating, working, sleeping and caring for a family are ordinary acts, yet a person who does them meaning to stay strong for worship, to provide what Allah has made their responsibility, or to keep a promise, turns the ordinary into something Allah rewards. The reverse is also true: a great-looking act done to show off loses its value.

Worship with religion made pure for Him

وَمَآ أُمِرُوٓا۟ إِلَّا لِيَعْبُدُوا۟ ٱللَّهَ مُخْلِصِينَ لَهُ ٱلدِّينَ حُنَفَآءَ وَيُقِيمُوا۟ ٱلصَّلَوٰةَ وَيُؤْتُوا۟ ٱلزَّكَوٰةَ ۚ وَذَٰلِكَ دِينُ ٱلْقَيِّمَةِ

And they are ordered naught else than to serve Allah, keeping religion pure for Him, as men by nature upright, and to establish worship and to pay the poor-due. That is true religion.

Al-Bayyinah 98:5 · Marmaduke Pickthall (en.pickthall)
Read it in the Quran reader

This verse summarises what people were commanded: to serve Allah, keeping religion pure for Him, alongside prayer and the poor-due. The phrase about keeping religion pure is the Quran's language for ikhlas. Notice that sincerity is not presented as an optional extra for the very devout; it is part of the basic instruction, set right next to the prayer and zakah that every Muslim knows.

For deeper commentary on this verse, open it in the site's Quran reader and read the stored tafsir of Jalalayn or al-Baghawi.

Actions are judged by intentions

عَنْ أَمِيرِ الْمُؤْمِنِينَ أَبِي حَفْصٍ عُمَرَ بْنِ الْخَطَّابِ رَضِيَ اللهُ عَنْهُ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ: " إنَّمَا الْأَعْمَالُ بِالنِّيَّاتِ، وَإِنَّمَا لِكُلِّ امْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إلَى اللَّهِ وَرَسُولِهِ فَهِجْرَتُهُ إلَى اللَّهِ وَرَسُولِهِ، وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا أَوْ امْرَأَةٍ يَنْكِحُهَا فَهِجْرَتُهُ إلَى مَا هَاجَرَ إلَيْهِ". رَوَاهُ إِمَامَا الْمُحَدِّثِينَ أَبُو عَبْدِ اللهِ مُحَمَّدُ بنُ إِسْمَاعِيل بن إِبْرَاهِيم بن الْمُغِيرَة بن بَرْدِزبَه الْبُخَارِيُّ الْجُعْفِيُّ [رقم:1]، وَأَبُو الْحُسَيْنِ مُسْلِمٌ بنُ الْحَجَّاج بن مُسْلِم الْقُشَيْرِيُّ النَّيْسَابُورِيُّ [رقم:1907] رَضِيَ اللهُ عَنْهُمَا فِي "صَحِيحَيْهِمَا" اللذَينِ هُمَا أَصَحُّ الْكُتُبِ الْمُصَنَّفَةِ

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (ﷺ) 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."

Forty Hadith an-Nawawi, no. 1 Sahih · Bukhari & Muslim

This is the first hadith of the collection, stored as Sahih and recorded by both al-Bukhari and Muslim. It was narrated by Umar ibn al-Khattab. Its teaching, in our own words: every deed is weighed by the intention behind it, and each person receives what they actually intended.

The example it uses is the hijrah, the migration of the early Muslims from Makkah to Madinah. Two people made the same long journey. For one it was a journey to Allah and His Messenger; for another it was a journey for some worldly gain or for a marriage. Same road, same dust, different journeys.

In today's terms: two people move to a new city near a mosque. Two people volunteer at a food bank. Two people grow a beard or wear a headscarf. The hadith asks each of us: why, really?

A note on rulings

Jurists use this hadith when discussing whether acts of worship need an intention to be valid. They broadly agree that prayer and fasting need one, but they differ on some acts. For example, the Hanafi school counts the intention for wudu (ablution) as a sunnah, while the Maliki, Shafi'i and Hanbali schools treat it as required. For your own practice, follow what a qualified local teacher of your school explains.

The intention to do good is itself recorded; and the religion is sincerity

عَنْ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا عَنْ رَسُولِ اللَّهِ صلى الله عليه و سلم فِيمَا يَرْوِيهِ عَنْ رَبِّهِ تَبَارَكَ وَتَعَالَى، قَالَ: "إنَّ اللَّهَ كَتَبَ الْحَسَنَاتِ وَالسَّيِّئَاتِ، ثُمَّ بَيَّنَ ذَلِكَ، فَمَنْ هَمَّ بِحَسَنَةٍ فَلَمْ يَعْمَلْهَا كَتَبَهَا اللَّهُ عِنْدَهُ حَسَنَةً كَامِلَةً، وَإِنْ هَمَّ بِهَا فَعَمِلَهَا كَتَبَهَا اللَّهُ عِنْدَهُ عَشْرَ حَسَنَاتٍ إلَى سَبْعِمِائَةِ ضِعْفٍ إلَى أَضْعَافٍ كَثِيرَةٍ، وَإِنْ هَمَّ بِسَيِّئَةٍ فَلَمْ يَعْمَلْهَا كَتَبَهَا اللَّهُ عِنْدَهُ حَسَنَةً كَامِلَةً، وَإِنْ هَمَّ بِهَا فَعَمِلَهَا كَتَبَهَا اللَّهُ سَيِّئَةً وَاحِدَةً".<br>[رَوَاهُ الْبُخَارِيُّ] ، [وَمُسْلِمٌ]، في "صحيحيهما" بهذه الحروف

On the authority of Ibn Abbas (may Allah be pleased with him), from the Messenger of Allah (peace and blessings of Allah be upon him), from what he has related from his Lord: Verily Allah ta’ala has written down the good deeds and the evil deeds, and then explained it [by saying]: “Whosoever intended to perform a good deed, but did not do it, then Allah writes it down with Himself as a complete good deed. And if he intended to perform it and then did perform it, then Allah writes it down with Himself as from ten good deeds up to seven hundred times, up to many times multiplied. And if he intended to perform an evil deed, but did not do it, then Allah writes it down with Himself as a complete good deed. And if he intended it [i.e., the evil deed] and then performed it, then Allah writes it down as one evil deed.” [Al-Bukhari]

Forty Hadith an-Nawawi, no. 37 Sahih · Muslim
عَنْ أَبِي رُقَيَّةَ تَمِيمِ بْنِ أَوْسٍ الدَّارِيِّ رَضِيَ اللهُ عَنْهُ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ: "الدِّينُ النَّصِيحَةُ." قُلْنَا: لِمَنْ؟ قَالَ: "لِلَّهِ، وَلِكِتَابِهِ، وَلِرَسُولِهِ، وَلِأَئِمَّةِ الْمُسْلِمِينَ وَعَامَّتِهِمْ." [رَوَاهُ مُسْلِمٌ]

On the authority of Tameem ibn Aus ad-Daree (ra): The Prophet (ﷺ) said, “The deen (religion) is naseehah (advice, sincerity).” We said, “To whom?” He (ﷺ) said, “To Allah, His Book, His Messenger, and to the leaders of the Muslims and their common folk.”

Forty Hadith an-Nawawi, no. 7 Sahih · Muslim

Hadith 37 is stored as Sahih (the reference shown is Muslim, and the text also notes al-Bukhari). Here the Prophet ﷺ relates from his Lord how deeds are written. Simply intending a good deed, even if circumstances stop you, is written as a full good deed. Carrying it out is multiplied many times over. Intending a bad deed and then holding back is written as a good deed, while doing it is written as only one. This is intention seen through the lens of mercy: Allah sees the plan you made to visit a sick friend, even if the train was cancelled.

Hadith 7, stored as Sahih from Muslim and narrated by Tamim ad-Dari, teaches that the whole religion is naseehah: being true towards Allah, His Book, His Messenger, the leaders of the Muslims and ordinary people. Sincerity, in other words, does not stay locked in the heart. It shapes how we read the Quran, how we follow the Sunnah, how we advise people in authority and how we treat a neighbour. Sincere advice is given privately and kindly, for the other person's good, not to score a point.

Key terms: intention and sincerity

Tap a card to turn it over.

1 / 5

Your own late evening

Think of one thing you did this week that looked good from the outside. If you are honest with yourself, what was driving it? Is there a small way you could renew that intention next time?

Private: kept only in this browser, never sent to us.

Check your understanding

According to hadith 1, what makes two identical-looking migrations different?

Check your understanding

A man plans to give a regular donation but loses his job before the first payment. What does hadith 37 suggest?

Check your understanding

Which statement best reflects hadith 7 on naseehah?

Your progress is kept on this device. Sign in to keep it on every device.