Niyya (intention in deeds)

النية في الأعمال

The purpose and will behind an act; Ibn Rajab notes that intention has two senses in scholars' usage: distinguishing acts of worship from one another and from habits — the sense dominant in the jurists' books — and distinguishing the aim intended by the act, whether for God alone or for other than Him — the sense dominant among the early generations and companion to sincerity; al-Shafi'i is reported to have called the hadith 'actions are but by intentions' a third of knowledge entering seventy chapters of jurisprudence, and al-Bukhari opened his Sahih with it.

Depth

At a glance

Era
The Prophetic Era
Region
Global / Diaspora
Identifiers
Wikidata
Review
Draft Completeness 2/5 · Help complete it

CreedSpirituality and SufismWorship and the pillars

Overview

Niyya (intention) is the purpose and will from which the deed arises. Ibn Rajab notes that in the words of the scholars it has two meanings. The first is distinguishing acts of worship from one another and from customs, which is the prevalent usage in the books of jurists. The second is distinguishing the aim of the deed: whether it is for God alone or for something else, which is prevalent in the speech of the early generations and is the companion of sincerity. 1

The hadith on intentions

On the hadith "deeds are only by intentions," al-Shafi'i held that it is a third of knowledge, and that it enters into seventy chapters of jurisprudence. Al-Bukhari opened his Sahih with it. 1

A question: what is meant by "deeds"?

The question is whether "deeds" in the hadith means all voluntary deeds, or the legal deeds that require intention. And is intention a condition of validity or a condition of perfection?

The first position (Sunni, from the later scholars). Ibn Rajab relates that many later scholars read the hadith as: deeds are valid, or considered, or accepted by intentions. Deeds that do not require intention are excepted from the generality of deeds, such as eating, drinking, dressing, and returning trusts and deposits. 2

The second position (Sunni, from the earlier scholars). Ibn Rajab notes that others kept deeds in their generality, and some related this from the majority. It occurs in the words of Ibn Jarir al-Tabari, Abu Talib al-Makki, and others, and it is the apparent sense of the words of Imam Ahmad. The hadith is then read as: deeds occur or are accomplished by intentions. The words "and every person has only what he intended" are a statement that the reward or punishment of the doer follows his intention. 3

Sha'rawi on sincerity

Sha'rawi says two people may do the same deed, one rewarded because he sought God's pleasure and the other not because he sought the world; if the act is not sincere for God, it is not accepted. He relies on the hadith that deeds are by intentions. 4

From Sheikh Omar Abdelkafy's Tafsir lectures (episode 9)

The Sheikh relays a saying of the scholars that one who is far from a sin but wishes for it in his heart is like one who was present at it, and that one who is present where a sin occurs but rejects it in his heart is like one who was not present 5. He then returns to the verses of al-Nazi'at and says that the "Sabihat" (Qur'an 79:3) carry the souls of the believers swiftly along 5.

Opinions on the question

The question: Do 'actions' in the hadith of intentions mean all voluntary acts or only religious acts requiring intention, and is intention a condition of validity or of completeness?

First opinion · Sunni tradition (the museum's frame)Main reference

'Actions' means religious acts that require intention; the hadith is understood as: actions are valid, regarded or accepted through intentions

Ibn Rajab reports that many later scholars construe the hadith as: actions are valid, regarded or accepted through intentions, so that what needs no intention — habits such as eating, drinking and dress, or returning trusts and deposits — is excluded from its general wording.

Held by: Ibn Rajab al-Hanbali

Basis: Jami' al-Ulum wal-Hikam — Ibn Rajab al-Hanbali pp. 34–35, commentary on hadith 1

More opinions (1)

Sunni tradition (the museum's frame)Main reference

'Actions' retains its general sense with nothing excluded: the hadith states that voluntary acts do not occur without purpose, and that the doer's share of his deed is his intention

Ibn Rajab notes that others kept 'actions' general and that some attributed this to the majority; it occurs in the words of Ibn Jarir al-Tabari and Abu Talib al-Makki and other early scholars, and is the apparent position of Imam Ahmad. The construal is then: actions occur and come about through intentions, and 'each person has only what he intended' states the law's ruling that the doer's reward or punishment follows his intention.

Held by: Ibn Rajab al-HanbaliAhmad ibn Hanbal

Basis: Jami' al-Ulum wal-Hikam — Ibn Rajab al-Hanbali pp. 34–36, commentary on hadith 1

Connections

Explore the connections

Based on
Arba'un 1 — Actions are but by intentions· Arba'un 25 — the wealthy have taken all the reward
Has part
Resolve for an act (hamm)
Basis for
Charity (sadaqa)

People and things also explored

Charity (sadaqa)· Arba'un 25 — the wealthy have taken all the reward· Spending in the way of God (infaq)· Abu Dharr al-Ghifari· Social solidarity and religious brotherhood· Resolve for an act (hamm)· Arba'un 26 — charity is due on every joint· Arba'un 37 — God wrote the good deeds and the evil deeds

Sources

  1. Jami' al-Ulum wal-Hikam — Ibn Rajab al-Hanbali , p.29-69
  2. Jami' al-Ulum wal-Hikam — Ibn Rajab al-Hanbali , p.34-35
  3. Jami' al-Ulum wal-Hikam — Ibn Rajab al-Hanbali , p.34-36
  4. Sha'rawi's Tafsir (al-Khawatir), scanned copy , p.586
  5. Assabile archive of Omar Abdelkafy's lectures (audio and video) , Tafsir Al Quran Al Qareem, episode 9, at 00:25:30 · Listen at the archive (opens the audio at this time)
Cite this page

islam.museum contributors. “Niyya (intention in deeds)”. islam.museum, https://islam.museum/en/concept/niyya/. CC BY-SA 4.0. Last updated 2026-10-25.

Improve this page on GitHub · Report an error · JSON

Wing

Ideas

Beliefs, concepts, sciences and schools, explained in plain words.
Related

Charity (sadaqa)

Charity in the usage of the Forty hadiths 25 and 26 is wider than alms of money: the poor Companions supposed there was no charity without wealth, until the Prophet directed them to charities within their power — glorification, magnification, praise, the declaration of unity, commanding right and forbidding wrong, removing harm from the road, aiding the weak, guiding the blind, making the deaf and mute understand, pointing out needs, running to the distressed, and 'in the intercourse of one of you is alms' — all of it a charity from a man upon himself; Hudhayfa's hadith in Muslim runs 'every act of kindness is charity' and Abu Masud's in the two Sahihs 'a man's spending on his family is charity'; in Abu Hurayra's hadith a charity is due on every sulama — joint or small hollow bone, three hundred and sixty joints in one version — each day the sun rises, and two mid-morning rak'as suffice for all of them in the Abu Dharr and Burayda routes; for Ibn Rajab the apparent sense is that a permissible act such as intercourse earns reward by an intention like seeking a righteous child or self-restraint, and al-Nawawi draws from it that permissible things become acts of obedience through sincere intentions.