The Obligatory Conditions of Prayer: Islam, Baligh, Sanity, and Purity

In studying the jurisprudence (fiqh) of worship, it is highly crucial for us to understand the applicable legal boundaries from the very beginning. Knowing the conditions that make prayer obligatory (syarat wajib shalat) serves as the foundation and the first step before we delve into the details of its execution. This discussion is an integral part of the Shafi’i madhhab prayer guide which must be understood by every Muslim to avoid errors in practicing the Shariah.

Understanding the Meaning of “Conditions for the Obligation of Prayer”

Many Muslims still find it difficult to distinguish between the conditions of validity (syarat sah) and the conditions of obligation (syarat wajib). Therefore, what exactly is meant by the conditions that make prayer obligatory? Simply put, the conditions of obligation are a series of criteria or attributes that determine the application of legal accountability (taklif—the demands of Shariah law) upon a servant.

If an individual meets these criteria, they are absolutely bound by the obligation of the obligatory prayers (shalat fardhu). Conversely, if even one of these conditions is not fulfilled, the demand for worship drops from them at that specific time.

Unlike the conditions of validity, which focus on the technical soundness of an act of worship (such as performing wudhu and facing the Qiblah), the conditions of obligation focus more on the identity, age, and biological or psychological condition of the individual. Understanding the jurisprudence of worship in the Shafi’i madhhab regarding this rule will save us from misunderstandings when educating our families or evaluating someone’s religious obligations.

How Many Conditions of Obligation Are There in the Shafi’i Madhhab?

A fundamental question often arises among the public: how many conditions make prayer obligatory, and what are their specific details? According to the scholars of the Shafi’i school, there are four main criteria that must coexist for an individual to be required to establish the five daily obligatory prayers.

To answer in detail what these conditions are, Sheikh Zakariyya al-Anshari explains them clearly. He asserts that prayer is only made mandatory for those who fulfill the following four criteria:

  • Islam: Only a Muslim’s worship is valid and demanded of them in this world.
  • Puberty (Baligh): Young children are entirely free from the burden of legal accountability (taklif).
  • Sanity (Berakal): Those who are insane, unconscious, or have lost their mental faculties are exempted from the obligation.
  • Purity (Tahir): Complete freedom from the states of menstruation (haid) and post-natal bleeding (nifas), applicable exclusively to women.

This ruling is based on the authentic exposition found in the classical text Asna al-Mathalib:

قوله: (وتجب على كل بالغ عاقل) ذكرا أو أنثى أو خنثى (طاهر) بخلاف الصبي والمجنون لعدم تكليفهما وبخلاف الحائض والنفساء بالإجماع

Translation: “(And prayer is obligatory upon every person who has reached puberty and is sane) whether male, female, or intersex (khuntha), (who is pure). This is in contrast to a child and an insane person due to the absence of legal accountability (taklif) on both, and in contrast to a menstruating and post-natal bleeding woman by consensus (ijma’).” [1]

The four pillars above form the core foundation for determining obligation. Once a person embraces Islam, reaches puberty, possesses a sound mind, and is in a state of purity, at that very moment they officially become a mukallaf (accountable person) who bears a great responsibility before Allah ﷻ.

Islam as an Absolute Condition for Legal Accountability

The most fundamental discussion in this chapter is the affirmation that being a Muslim stands as the primary, non-negotiable condition for the obligation of prayer. A person’s performance of this worship will not be demanded in this world, nor will it be considered valid, unless they believe in the message of Prophet Muhammad ﷺ. Therefore, one of the primary conditions for the obligation of prayer is Islam itself.

The Legal Status of Prayer for an Original Disbeliever (Kafir Asli)

What is the status of an individual who has been outside the fold of Islam since birth? In the fiqh literature of the Shafi’i madhhab, they are termed as an “original disbeliever” (kafir asli). Their legal standing is divided into two dimensions: the worldly dimension and the afterlife dimension.

1. Consequences of the Threat of Punishment in the Afterlife: Although there is no physical coercion from the Shariah in this world to force an original disbeliever to establish the prayer, they still bear severe consequences in the hereafter. The Shariah affirms that they are subject to the address of punishment (khitab ‘iqab), because they fundamentally possess the capacity to perform it by first embracing Islam.

Sheikh Zakariyya al-Anshari explains this rule strictly in his text:

قوله: (ولا تصح) الصلاة (إلا من مسلم)… (فالكافر) الأصلي (مخاطب بها) خطاب عقاب عليها في الآخرة لتمكنه من فعلها بالإسلام لا خطاب مطالبة بها في الدنيا لعدم صحتها منه

Translation: “(And it is not valid) the prayer (except from a Muslim)… Therefore, an original disbeliever is still addressed by it (mukhatab) in terms of punishment in the afterlife, because they were fundamentally capable of performing it by embracing Islam first. It is not a demand of performance in this worldly life because it would not be valid from them.” [2]

A more detailed discussion regarding this matter can be studied through the dedicated guides concerning the legal status of prayer for non-Muslims that we have analyzed extensively before.

2. Remission of Obligations Upon Embracing Islam: The glad tidings are that if an original disbeliever receives guidance and transitions into a Muslim (mualaf), all past obligations of worship are automatically wiped away. They are absolutely not required to perform any make-up prayers (qadha shalat) for the years that passed before they uttered the testimony of faith (shahadah).

This grand ease is grounded in classical texts referencing the Holy Qur’an directly:

قوله: (وتسقط) عنه (بإسلامه) لقوله تعالى {قل للذين كفروا إن ينتهوا يغفر لهم ما قد سلف} [الأنفال: ٣٨]

Translation: “(The obligation of prayer) drops from him upon his embracing of Islam, based on the statement of Allah Almighty: ‘Say to those who have disbelieved [that] if they cease, what has previously occurred will be forgiven for them’ (QS. Al-Anfal: 38).” [3]

The Obligation of Prayer for an Apostate (Murtad)

Does the same remission apply to a Muslim who commits apostasy (murtad) but later repents and returns to the fold of Islam? In jurisprudence, the legal status of an apostate is vastly different and carries much stricter consequences compared to a mualaf.

For a person who apostatizes, all the prayers left unperformed during the period of apostasy are not dropped. The Shariah views this as a severe violation. Consequently, they are strictly obligated to perform qadha shalat for all missed prayers immediately upon returning to Islam.

This is stated clearly in the continuation of the text of Asna al-Mathalib:

قوله: (لا عن المرتد) فيلزمه قضاؤها بعد إسلامه تغليظا عليه ولأنه التزمها بالإسلام فلا تسقط عنه بالجحود

Translation: “This obligation does not drop from an apostate. Thus, he is strictly required to make up (qadha) the prayers after returning to Islam as a form of severity/punishment (taghlizh) upon him, and because he bound himself to it through his initial Islam, so it cannot drop from him due to mere rejection.” [4]

The strictness of the Shariah regarding the legal status of an apostate serves as a safeguard so that religion is not trifled with. The Shariah justly distinguishes between a pure blessing granted to someone newly introduced to guidance and a disciplinary punishment (taghlizh) for someone who willingly abandoned it.

Puberty (Baligh) and Special Provisions for Children

A Muslim father guides a 7-year-old son in laying out a prayer mat, while a Muslim mother directs their young daughter in her hijab.
Although not yet mandatory, parents must gradually teach their children to pray starting at the age of seven.

As a servant bound by Shariah law, a Muslim is only subject to the obligation of prayer once they reach physical and mental maturity. This phase is known in fiqh literature as baligh.

Therefore, fulfilling the condition of puberty holds a critical position. It serves as the dividing line and the indicator for the onset of legal accountability (taklif) upon a human being.

Understanding the Boundary of Puberty as a Prerequisite for Accountability

This great obligation of worship is not levied upon a young child (shabi) who has not yet reached the age of puberty. Islamic law highly respects a person’s mental and physical readiness before imposing a legal obligation.

A young child is not considered to have full legal capacity, meaning they are free from sin if they do not perform it. This affirmation is conveyed by Sheikh Zakariyya al-Anshari in his text:

قوله: (ولا صلاة على صبي) لما مر

Translation: “(And there is no obligation of prayer upon a child) based on what has preceded [i.e., the absence of legal accountability].” [5]

Even though it is not yet mandatory, parents must remain vigilant and sensitive to the appearance of the signs of puberty in their children. As soon as these signs manifest—such as wet dreams (ihtilam) for boys or menstruation (haid) for girls—the obligation of the daily prayers immediately binds the child without any delay. For situational edge-cases, you may read our analysis on children who reach puberty mid-prayer.

The Role of Parents: When to Order Children to Pray?

Although young children are not personally obligated to pray, Islamic law places a significant educational responsibility on parents or guardians. There is a crucial transition phase that must be observed regarding commanding children to pray.

The Age of 7 and the Condition of Mumayyiz: Every parent or guardian is obligated (a Shariah obligation upon the parents, not the child) to command their child to establish prayer when the child turns seven lunar years old. However, this firm command has a primary prerequisite: the child must have reached the age of discernment (mumayyiz).

What is meant by mumayyiz? In the Shafi’i madhhab, a child is considered discerning if they can independently manage basic daily activities. Imam Zakariyya al-Anshari details it as follows:

قوله: (وعلى أبويه) أي كل منهما وإن علا (أو القيم) من جهة الحاكم أو الوصي (أمره بها)… (إن ميز) بأن انفرد بالأكل والشرب والاستنجاء (وأطاق) فعلهما (لسبع) من السنين أي بعد تمامها

Translation: “(And it is mandatory upon his parents) meaning each of them, even if ascending [like grandparents], (or the guardian) appointed by a judge or via a will, (to command him to pray)… (if he is discerning/mumayyiz) meaning he can independently eat, drink, and perform cleansing after evacuation (istinja), (and is capable) of performing both (at seven) years of age, meaning after completing them.” [6]

For those who wish to study these educational stages in fiqh deeply, please refer to our dedicated article covering the boundaries and evidences of the age when children are ordered to pray.

The Boundary of 10 Years and Disciplinary Striking: This process of education and habituation continues, and the Shariah takes a firmer step as the child grows older. It obligates parents or guardians to administer a symbolic disciplinary strike if the child boldly neglects the prayer at ten years of age.

However, it must be clearly understood that a strike through the lens of fiqh is an educational strike (ta’dib). The conditions are extremely rigid: it must not cause injury, must not break a bone, must leave no marks, and it is strictly forbidden to hit the face.

The foundation for dividing these educational stages into 7 and 10 years rests on the noble words of Prophet Muhammad ﷺ:

قوله: (و) عليهم (ضربه عليهما لعشر) كذلك لخبر أبي داود بإسناد حسن «مروا أولادكم بالصلاة وهم أبناء سبع واضربوهم عليها وهم أبناء عشر وفرقوا بينهم في المضاجع»

Translation: “(And) it is mandatory upon them [parents/guardians] (to strike them for neglecting them at ten) years of age… likewise due to the report of Abu Dawud with a good (hasan) chain of transmission: ‘Command your children to pray when they are seven years old, and beat them for [neglecting] it when they are ten years old, and separate them in their beds.'” [7]

This structured rule proves the beauty of Islam. The habituation of worship must be instilled gradually and well in advance, so that the child will not feel shocked when they officially bear the weight of sins and rewards upon reaching puberty.

Sanity (Aqil) – Rationality as a Prerequisite for Accountability

If someone asks you to name the three primary conditions for the obligation of prayer that apply universally to both men and women, the answer is: Islam, puberty, and sanity. These three elements constitute the absolute foundation of legal accountability (taklif).

While technically there is a fourth condition for women—purity from menstruation and post-natal bleeding—scholars often classify the core conditions for the obligation of prayer into three: being a Muslim, reaching puberty, and possessing a sound mind.

Fulfilling the condition of sanity is crucial because it indicates that a person has full conscious awareness of their actions. The intellect is the primary instrument for receiving Divine commands. Without sanity, an act of worship lacks the element of intentionality (niyah), which is the soul of worship itself.

The Legal Ruling of Prayer for the Insane and Unconscious

Islamic law is perfectly rational, just, and does not burden a servant beyond their capacity. The obligation to worship is entirely lifted from individuals who experience a loss of sanity without deliberate intent, such as those who are insane or individuals who suddenly fall unconscious (faint).

During the period of their lost consciousness, they do not hold the status of a mukallaf. This is affirmed by Sheikh Zakariyya al-Anshari when detailing those exempted from prayer:

قوله: (وتجب على كل بالغ عاقل)… بخلاف الصبي والمجنون لعدم تكليفهما

Translation: “(And prayer is obligatory upon every person who has reached puberty and is sane)… unlike a child and an insane person due to the absence of legal accountability for them.” [8]

Because the obligation of prayer is suspended at the time of its performance, the Shariah also does not burden them with a mandatory make-up prayer (qadha shalat) once their consciousness is restored. This rule applies absolutely as long as the loss of consciousness was not caused by a sinful act.

Loss of Sanity due to Intoxication or Medication

What if the loss of sanity occurs due to deliberate human action, such as the influence of intoxicants or anesthetics? In this case, Shafi’i scholars detail the ruling into two starkly contrasting situations:

1. Loss of Sanity due to Prohibited Causes (Sin): If the loss of intellect is triggered by consuming forbidden substances—such as drinking wine (khamr), using hashish (ganja), or abusing illegal drugs—the demand for worship is never dropped. The prayer of an intoxicated person is invalid if performed while drunk, but the debt of obligation remains binding. They must immediately perform a make-up prayer (qadha) for all missed prayers as soon as they sober up. This strictness serves as a penalty for their negligence (taqshir). This is clear in Asna al-Mathalib:

أما زوال العقل فإن كان بمحرم كخمر وحشيشة ووثبة عبثا ودواء بلا حاجة فلا يسقطها أي الصلاة

Translation: “As for the loss of sanity, if it is due to something prohibited, such as wine (khamr), hashish (ganja), reckless jumping [resulting in unconsciousness], or taking medicine without need, then it does not drop it—meaning, the prayer.” [9]

2. Loss of Sanity due to Medical Excuses or Necessity: The ruling differs entirely if a person loses consciousness for legitimate medical reasons. For example, a patient undergoing total anesthesia for surgery or amputation. In the eyes of the Shariah, this loss of consciousness is recognized as a valid and justified excuse. Because the anesthetic or painkiller was used out of medical urgency, the obligation of prayer during that period is entirely dropped, and they are not required to make it up:

أو أكله ليقطع يدا له متأكلة فيسقطها للعذر

Translation: “Or if he consumed it [the mind-altering substance] to amputate a decaying hand of his, then it drops it due to an excuse.” [10]

The Obligation of Making Up Prayers for the Forgetful and Sleeping

In addition to insanity and fainting, there are natural and lighter forms of temporary unconsciousness: sleep and pure, unintentional forgetfulness. A person who falls into a deep sleep or purely forgets a prayer until its time expires is not recorded as sinful for their delay (they are not required to perform it as a current performance (ada’) while in that state).

Although they are not sinful, the debt of prayer is not canceled. The Shariah establishes an immediate obligation to make up (qadha) the prayer as soon as they wake up or remember. This legal foundation is drawn directly from the words of Prophet Muhammad ﷺ:

وعلى الناسي للصلاة والنائم عنها والجاهل لوجوبها القضاء لخبر الصحيحين «من نسي صلاة أو نام عنها فكفارتها أن يصليها إذا ذكرها»

Translation: “And making up (qadha) is obligatory upon the one who forgets a prayer, the one who sleeps through it, and the one ignorant of its obligation, due to the report in the two Authentic Collections [Bukhari and Muslim]: ‘Whoever forgets a prayer or sleeps through it, its expiation (kaffarah) is that he prays it when he remembers it.'” [11]

It must be highlighted that this sleep concession only applies if the sleep occurred before the prayer time entered, or if they slept at the beginning of the time with a strong conviction that they would wake up. If someone deliberately goes to sleep knowing that the prayer time is almost over, they remain sinful due to their own negligence.

Purity from Menstruation and Postnatal Bleeding (Tahir)

Elegant portrait of a Muslim woman in a flowing hijab sitting peacefully near a window reading a translated Quran in a modern Islamic interior.
Purity from menstruation and post-natal bleeding is an additional, exclusive criterion that Muslim women must fulfill.

In addition to Islam, puberty, and sanity, the Shariah establishes an exclusive additional criterion for women. Fulfilling the condition of purity for women means ensuring that she is clean from the biological cycles of menstruation (haid) and childbirth bleeding (nifas).

Confusion often arises as to whether being pure from ritual impurity (hadas) is a condition for the obligation of prayer. The answer is no. Purity from ritual impurity (via wudhu or ghusl) is a condition of validity, whereas purity from menstrual and postnatal blood is a condition of obligation that determines whether the legal accountability (taklif) applies in the first place.

Purity as a Special Condition for Women

This biological reality gives women a unique legal status. If a woman is experiencing this bleeding, the obligation of the five daily prayers is completely lifted from her shoulders for those days. This distinguishes them from men regarding legal accountability. Scholars have reached a unanimous consensus (ijma’) on this exception, as affirmed by Sheikh Zakariyya al-Anshari:

قوله: (وتجب على كل بالغ عاقل) ذكرا أو أنثى أو خنثى (طاهر) بخلاف الصبي والمجنون لعدم تكليفهما وبخلاف الحائض والنفساء بالإجماع

Translation: “(And prayer is obligatory upon every person who has reached puberty and is sane) whether male, female, or intersex, (who is pure). This is in contrast to a child and an insane person due to the absence of legal accountability on both, and in contrast to a menstruating and post-natal bleeding woman by consensus.” [12]

The Dropping of the Obligation without the Requirement of Qadha

Women experiencing menstruation or postnatal bleeding are completely free from the demands of daily prayers. The Shariah provides a compassionate concession that accounts for their physical fatigue and psychological fluctuations during these periods.

Interestingly, the removal of this obligation takes the form of a strict determination (‘azimah), not merely a preferred choice or option (rukhshah) like that granted to a traveler. This means that a menstruating woman is legally commanded to abstain, and she would sin if she forced herself to pray.

Therefore, performing prayer while menstruating is absolutely forbidden, and the worship is invalid. Even more remarkably, once they return to a state of purity, the Shariah does not burden them with the duty of making up (qadha) the prayers missed over those days:

قوله: (لا) مدة (الحيض) فلا تقضي (فيهما)… لأن إسقاط الصلاة عنها عزيمة لأنها مكلفة بالترك… والنفساء كالحائض في ذلك

Translation: “(Not) during the period of (menstruation), so she does not make up [the prayers missed in both]… because the dropping of prayer from her is a strict determination (‘azimah), as she is legally commanded to leave it… and a woman in post-natal bleeding is like a menstruating woman in that regard.” [13]

Sheikh Zakariyya al-Anshari notes that even if a woman takes medication to induce menstruation early (provided it is medically safe), she is still treated under the same rules as a naturally menstruating woman. All obligatory prayers missed during that time are dropped and do not need to be made up.

FAQ Regarding the Conditions that Make Prayer Obligatory

Is a new Muslim (mualaf) required to make up (qadha) prayers missed in the past?

No, they are not. A non-Muslim (original disbeliever) who embraces Islam is automatically absolved from the worship demands of their past. However, the ruling differs for an apostate. An apostate who returns to Islam is strictly required to make up every single prayer missed during their apostasy as a Shariah penalty (taghlizh). [14]

At what age should children be commanded to pray, and when can they be strictly disciplined?

Parents are required to order their children to pray at the age of seven lunar years, provided the child is discerning (mumayyiz). If the child continues to neglect the prayer upon reaching ten years of age, parents are obligated to administer a gentle, educational, non-injurious strike that leaves no marks and avoids the face entirely. [15]

Is an intoxicated person who has lost their senses still obligated to pray?

Yes, if the intoxication was due to a sinful act (deliberate consumption of forbidden substances). Their prayer is invalid while drunk, but they must immediately make up (qadha) the prayers once they sober up. If the loss of senses was due to a legitimate medical reason (such as surgical anesthesia), the obligation is dropped entirely, and no make-up is required. [16]

Must a woman make up the prayers missed during her menstrual cycle after she purifies herself?

Absolutely not. The obligation of prayer is entirely dropped during menstruation and postnatal bleeding. Forcing oneself to pray during this state is strictly forbidden, and no make-up prayers are required after performing the ritual bath (ghusl). This exemption is an ‘azimah (binding rule), not a mere choice. [17]

Conclusion and the Virtue of Hastening to Worship

While the FAQ section summarizes several crucial issues, a foundational conclusion must be emphasized. Knowing with certainty the conditions that make the five daily prayers obligatory is not merely a theoretical exercise; it is the core framework for every Muslim. This knowledge serves as the metric determining when an individual officially bears spiritual responsibility (taklif) before Allah ﷻ.

Once a person perfectly fulfills the four conditions—being a Muslim, reaching puberty, possessing sanity, and being pure from menstruation/postnatal bleeding—there is no longer any valid excuse to delay the obligation. Negligence after these conditions are met constitutes a severe violation of Shariah law.

Furthermore, for those who hold the status of a mukallaf, the Shariah highly encourages executing the worship as soon as its time begins. Sheikh Zakariyya al-Anshari emphasizes the virtue of hastening the prayer in Asna al-Mathalib:

فصل: (وتعجيلها) أي الصلاة أول الوقت (أفضل ولو عشاء) لقوله تعالى {حافظوا على الصلوات} ومن المحافظة عليها تعجيلها

Translation: “Section: (And hastening it) meaning the prayer at the beginning of its time (is better, even for the Isha prayer) due to the statement of Allah Almighty: ‘Maintain with care the [obligatory] prayers’ (QS. Al-Baqarah: 238), and part of maintaining them is hastening them.” [18]

Therefore, let us consistently safeguard our obligatory prayers and educate our families to understand these legal boundaries thoroughly. Studying the conditions of obligation and validity comprehensively through the trusted framework of the Shafi’i school will protect the quality of our worship from futility.


References & Footnotes

1 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

2 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

3 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

4 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

5 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

6 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

7 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

8 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

9 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 122.

10 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 122.

11 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 122.

12 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

13 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 122.

14 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

15 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

16 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 122.

17 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 121.

18 : Zakariyya al-Anshari, Asna al-Mathalib, Vol. 1, p. 119.

Zakariyā al-Anṣārī, Asnā al-Maṭālib fī Sharḥ Rawḍ al-Ṭālib, with ḥāsyiyah by Aḥmad al-Ramlī, edited by Muḥammad az-Zuhrī al-Ghamrāwī (Cairo: al-Maṭbaʿah al-Maymānīyah, 1313 AH; repr. Dār al-Kitāb al-Islāmī), vol. 1, pp. 119-122.

Discussion Room

Please feel free to ask or share knowledge with good adab. Your email address is safe and will not be published.