I'tikaf at a glance:

Definition: seclusion in a mosque dedicated to worship
Ruling: sunnah mu'akkadah for the last ten nights of Ramadan
Entry time: before Fajr of the 21st of Ramadan (after the 20th Maghrib)
Exit time: after the Eid crescent is sighted (before Eid Fajr)
What it requires: niyyah (intention), mosque, valid wudu
What breaks it: leaving the mosque without necessity, intercourse
Qur'an: "while you are in seclusion in the mosques" (2:187)

I'tikaf is one of the most misunderstood acts of worship in the Islamic calendar. Some Muslims see it as a purely optional retreat for the very devout; others know they should do it but are unclear on the rules. The Prophet ﷺ performed i'tikaf with such consistency that Aisha (RA) described it as something he never abandoned after coming to Madinah. In the year he died, he performed it for twenty days rather than the usual ten.

What is i'tikaf? At its core, it is confinement to a mosque for the purpose of worship. The person who enters i'tikaf cuts their ordinary social and professional life and spends those days and nights in prayer, Qur'an, dhikr, du'a, and reflection. It is a voluntary isolation that produces extraordinary closeness to Allah. And the last ten nights of Ramadan, which contain the Night of Power (Laylat al-Qadr), are the most rewardable context in which to perform it.

What i'tikaf is and its Qur'anic basis

I'tikaf literally means "clinging to" or "devoting oneself exclusively to" something. In Islamic law, it means staying in a mosque with the intention of worshipping Allah, free from ordinary worldly engagements. The Qur'an mentions it specifically in the context of fasting and Ramadan:

"It has been made permissible for you on the night of fasting to go to your wives. They are clothing for you and you are clothing for them. Allah knows that you used to deceive yourselves, so He accepted your repentance and forgave you. So now have relations with them and seek that which Allah has decreed for you. And eat and drink until the white thread of dawn becomes distinct to you from the black thread of night. Then complete the fast until the sunset. And do not have relations with them as long as you are staying in seclusion in the mosques. These are the limits set by Allah, so do not approach them." (Qur'an 2:187)

The phrase "while you are staying in seclusion in the mosques" (wa antum akifuna fil-masajid) is the Qur'anic basis for i'tikaf. The verse presupposes that some believers will be in this state during Ramadan and addresses its specific ruling (prohibition of marital relations during i'tikaf). This confirms that i'tikaf was an established practice during the Prophet's lifetime.

Ruling on i'tikaf

The four schools of Islamic law classify i'tikaf as follows:

Sunnah mu'akkadah (confirmed sunnah): All four schools agree that i'tikaf in the last ten nights of Ramadan is a confirmed sunnah based on the Prophet's consistent practice. This is the majority position for the specific ten-night form.

Fard kifayah (communal obligation): The Hanbali school holds that the ten-night i'tikaf in Ramadan is a communal obligation, meaning if no one in a community performs it, the entire community is sinful. If some members perform it, the obligation is lifted from the rest.

Nafl (voluntary): I'tikaf outside of Ramadan or for shorter periods than ten nights is classified as nafl (voluntary), rewarded but not considered a sunnah mu'akkadah.

The evidence for the confirmed status of the Ramadan i'tikaf is the hadith of Aisha (RA):

"The Prophet ﷺ used to perform i'tikaf in the last ten days of Ramadan until he died, and then his wives performed i'tikaf after him." (Sahih al-Bukhari 2026)

Conditions for valid i'tikaf

Several conditions must be met for an i'tikaf to be valid:

1. Islam. Only a Muslim may perform i'tikaf.

2. Sanity and discernment. The person must be of sound mind and understand what they are doing.

3. Intention (niyyah). The intention to perform i'tikaf must be made. It does not need to be verbalized; a sincere internal intention is sufficient. The Hanafi school holds the intention is required at the time of entering.

4. Being free of major ritual impurity. A person in the state of janabah (major impurity requiring ghusl) may not remain in the mosque. Someone who becomes junub during i'tikaf must exit to perform ghusl and may return immediately.

5. The place must be a masjid. All four schools require that i'tikaf be performed in a masjid (mosque). The Hanafi school additionally requires the mosque to be one where congregational prayers are established. The most virtuous mosques for i'tikaf are the three sacred mosques (Masjid al-Haram, Masjid al-Nabawi, and Masjid al-Aqsa) followed by the main congregational mosque of one's city.

6. Fasting (according to the Hanafi and Maliki schools). These schools hold that fasting is a condition for valid i'tikaf. The Shafi'i and Hanbali schools hold it is not a condition, meaning one could perform i'tikaf outside of Ramadan without fasting. During Ramadan, since fasting is obligatory, this difference does not arise in practice.

How and when to enter i'tikaf

The i'tikaf for the last ten nights of Ramadan begins before the 21st night of Ramadan, which is the night following the 20th day. In practice, this means the person enters the mosque before Fajr of the 21st of Ramadan, or more precisely before sunset at the end of the 20th day (since the Islamic night precedes the day).

Aisha (RA) described the Prophet's practice:

"The Prophet ﷺ used to perform i'tikaf in the last ten days of Ramadan, and I would set up a tent for him, and he would pray Fajr and then enter the tent." (Sahih al-Bukhari 2029)

The standard practice in many mosques today is for the mu'takif (the person in i'tikaf) to enter the mosque after Asr on the 20th of Ramadan, settle into their designated area, and remain there continuously until the sighting of the Eid crescent moon at the end of Ramadan. The i'tikaf ends upon the sighting of the Eid crescent (or the completion of thirty days of Ramadan if the crescent is not sighted), and the person exits to prepare for Eid.

To formally enter i'tikaf, the person makes the intention and steps into the mosque with that intention. There is no special verbal declaration required, though some scholars recommend saying "I intend to perform i'tikaf in this mosque for the sake of Allah" to solidify the intention.

What is permitted during i'tikaf

The following activities are explicitly permitted during i'tikaf:

All forms of worship: prayer (including both obligatory and voluntary prayers), reading Qur'an, dhikr, du'a, studying Islamic knowledge, listening to Islamic lessons, and repentance. These are the primary activities of i'tikaf and should occupy most of the person's time.

Necessary exits: The mu'takif may leave the mosque premises for toilet needs and for performing ghusl (when required, such as after a wet dream). These exits should be only as long as necessary. The Prophet ﷺ would only leave for "human needs" (Sahih al-Bukhari 2029), which the scholars interpreted as toilet use and obligatory ghusl.

Eating and drinking inside the mosque: The mu'takif eats and sleeps in the mosque during i'tikaf. Eating, drinking, and sleeping in one's designated area of the mosque are all permitted.

Speaking with family and visitors: The Prophet ﷺ would speak with Aisha (RA) during his i'tikaf. She would come to the door of the mosque and he would speak with her (Sahih Muslim 297). Brief, necessary conversations are permitted. What is not permitted is prolonged social conversation that defeats the purpose of seclusion.

Hair and body care: Combing hair, cutting nails, and personal grooming are permitted, as reported from the companions.

Sleeping: The mu'takif sleeps in the mosque during i'tikaf. The Prophet ﷺ had a small tent or area set up for him in the mosque where he would sleep.

What is prohibited during i'tikaf

The following are prohibited during i'tikaf:

Leaving the mosque without a valid necessity. This is the defining restriction of i'tikaf. Leaving to go home, to work, to shop, or to visit people without a genuine necessity invalidates the i'tikaf. What constitutes a valid necessity is discussed under what breaks i'tikaf.

Marital relations. This is explicitly prohibited by the Qur'anic verse (2:187): "And do not have relations with them as long as you are staying in seclusion in the mosques." This prohibition is absolute during i'tikaf regardless of whether it occurs inside or outside the mosque.

Anything that defeats the purpose of i'tikaf. While there is no classical text prohibiting phones or screens, the principle is clear: anything that distracts the heart from remembrance of Allah and turns i'tikaf into a physical seclusion without spiritual benefit goes against its spirit. Many contemporary scholars strongly recommend a digital fast during i'tikaf.

What breaks i'tikaf

I'tikaf is broken by the following acts:

1. Leaving the mosque voluntarily without a necessity. If the mu'takif leaves the mosque for a reason other than toilet, ghusl, or a pre-agreed necessity, the i'tikaf is broken. If a person exits the mosque to buy food (rather than having food brought to them), most scholars hold this breaks the i'tikaf. If food is brought to the mosque door and the mu'takif steps barely outside to receive it, the scholars differ on whether this breaks i'tikaf.

2. Sexual intercourse. This breaks i'tikaf absolutely. If it occurred during Ramadan by day, it also incurs kaffarah (the major expiation). The Qur'anic prohibition is explicit.

3. Becoming junub (major impurity) and not immediately returning to purify. The mu'takif who becomes junub must exit for ghusl and return promptly. If they do not return or delay unnecessarily, the i'tikaf is broken according to some scholars.

4. Apostasy. Leaving Islam breaks i'tikaf.

5. Menstruation (for women). A woman who begins her period during i'tikaf must leave the mosque, as a menstruating woman may not remain in the mosque. She can re-enter and resume i'tikaf if she becomes pure before the end of the ten nights, according to some scholars.

What does NOT break i'tikaf: necessary exits for toilet, wudu, or obligatory ghusl; brief conversations at the mosque entrance with family; eating and drinking inside the mosque; sleeping in the mosque.

I'tikaf for women

Women performed i'tikaf with the Prophet ﷺ during his lifetime. The primary narration establishing this is:

"The Prophet ﷺ intended to perform i'tikaf in the last ten days of Ramadan, and his wives asked his permission to perform i'tikaf with him. He permitted them, and they set up tents in the mosque. When he prayed Fajr, he noticed the tents and said: 'What is this?' He was informed, and he said: 'Are they doing this for righteousness?' He then abandoned his i'tikaf that month and performed i'tikaf in Shawwal instead." (Sahih al-Bukhari 2033)

This hadith shows that the Prophet ﷺ did permit women to perform i'tikaf in the mosque, though in this particular case he had concerns about their motivation. After he passed away, Aisha (RA), Hafsa (RA), and other wives of the Prophet continued to perform i'tikaf (Sahih al-Bukhari 2026).

The scholarly debate is about location: the mosque or a designated prayer space at home. The Hanafi school holds that women perform i'tikaf in their home prayer area (musalla al-bayt) as this provides more protection and avoids fitna. The Shafi'i, Maliki, and Hanbali schools permit women in the mosque, subject to conditions of safety and permission from their guardian.

Contemporary scholars in non-Muslim-majority countries often recommend women attend i'tikaf in mosques where proper facilities and separation exist, especially in groups. Individual circumstances vary and the guidance of a local scholar should be sought.

Short i'tikaf and partial options

Not everyone can commit to ten full days of i'tikaf. This is a reality that the scholars have acknowledged. The following options exist for those who cannot perform the full ten nights:

A vowed i'tikaf of any duration. If a person vows to perform i'tikaf for a specific number of days, fulfilling that vow is obligatory. Vowing i'tikaf for even one day or one night and fulfilling it is better than not performing i'tikaf at all.

Voluntary i'tikaf for any period. The Shafi'i school holds that even a momentary stay in the mosque with the intention of i'tikaf constitutes a valid voluntary i'tikaf that earns reward. Spending an evening, a day, or a weekend in i'tikaf is valid and rewarded.

Nightly i'tikaf. Some scholars hold that a person may perform i'tikaf for the night only and return home during the day to fulfill work or family obligations, treating each night as a separate act of i'tikaf. This is not the classical ten-night i'tikaf but is a recognized option for those unable to be away from home and work.

The key insight is that the barrier to i'tikaf should be one's sincere ability, not perfectionism or all-or-nothing thinking. Even partial engagement with the last ten nights through intentional mosque stays is better than no engagement.

Structuring the last ten nights in i'tikaf

For those who enter the full ten nights of i'tikaf, here is how to structure the days and nights for maximum benefit, following the Prophet's example:

The nights (Maghrib to Fajr): These are the primary time for worship. After breaking the fast at Maghrib, perform Maghrib prayer, eat lightly, then proceed to Isha and Tarawih. After Tarawih, the night opens for intensive worship. This is the time for tahajjud, personal du'a, Qur'an recitation, and reflection. The Prophet ﷺ is described as "girding his loins" (preparing intensely) in the last ten nights (Sahih al-Bukhari 2024), which the scholars interpret as staying awake most of the night in worship.

The pre-Fajr period (Suhoor time): Rise for suhoor (if fasting, which is the case in Ramadan). This is also a particularly powerful time for du'a, as the hadith establishes that Allah descends in a way befitting His Majesty in the last third of the night and asks who is making du'a so He may answer (Sahih al-Bukhari 1145).

After Fajr: The Prophet ﷺ would pray Fajr and then often remain in his place until sunrise, engaging in dhikr and recitation. The period between Fajr and sunrise is particularly valued: "Whoever prays Fajr in congregation, then sits and makes dhikr until the sun rises, then prays two rakats, gets the reward of a complete Hajj and Umrah" (Tirmidhi 586, classified hasan).

The daytime: The daytime hours during i'tikaf can include rest (sleeping is permitted), reading, studying Islamic knowledge, and lighter worship such as dhikr. The body needs sleep to sustain night worship. The Prophet ﷺ set up a tent for rest and privacy within the mosque.

A practical daily schedule for a ten-night i'tikaf might look like this: Rest after Fajr until Dhuhr. Dhuhr prayer and light worship. Asr prayer and Qur'an. Iftar preparation and Maghrib. Isha and Tarawih. Tahajjud and intensive night worship. Suhoor. Fajr. Return to rest.

Connection to Laylat al-Qadr

I'tikaf in the last ten nights is inseparably connected to the search for Laylat al-Qadr, the Night of Power. This is the primary reason the Prophet ﷺ intensified his i'tikaf practice in the last ten nights specifically.

Aisha (RA) narrated:

"The Messenger of Allah ﷺ used to exert himself in the last ten nights more than he would at any other time." (Sahih Muslim 1175)

The Prophet ﷺ told his companions to seek Laylat al-Qadr in the odd nights of the last ten nights of Ramadan:

"Look for Laylat al-Qadr in the odd nights of the last ten nights of Ramadan." (Sahih al-Bukhari 2017)

The odd nights of the last ten are the 21st, 23rd, 25th, 27th, and 29th nights of Ramadan. The 27th night is considered by many scholars to have the strongest evidence for being Laylat al-Qadr, though the Prophet ﷺ deliberately obscured the specific night to encourage worship throughout all of the last ten nights.

Laylat al-Qadr is described in Qur'an as "better than a thousand months" (Surah Al-Qadr 97:3). Worshipping on this one night is equivalent in reward to over 83 years of continuous worship. The Muslim who is in i'tikaf for all ten odd nights is virtually guaranteed to catch Laylat al-Qadr. This is the most profound opportunity for spiritual transformation that the Islamic year provides.

The du'a that Aisha (RA) asked the Prophet ﷺ to teach her for Laylat al-Qadr is the most recommended du'a for this period:

"Allahumma innaka afuwwun tuhibb al-afwa fa'fu anni." (O Allah, You are All-Pardoning and You love to pardon, so pardon me.) (Tirmidhi 3513, classified sahih)

This du'a is recommended to be repeated abundantly on each of the last ten odd nights and throughout the period of i'tikaf. It captures the essence of what Ramadan and i'tikaf are about: seeking Allah's pardon, His love, and His mercy.

FAQ

Can I exit the mosque to check on a sick family member during i'tikaf?

The scholars differ on this. If a family member is critically ill and no one else can attend to them, some scholars permit a brief exit for care. Al-Nawawi and others in the Shafi'i school held that a necessary exit for an unavoidable obligation does not break i'tikaf if there was a prior stipulation (shart) made at the time of entering. The Hanafi school generally holds that any exit beyond toilet and ghusl breaks i'tikaf. The safest approach is to stipulate any known necessities when entering i'tikaf, saying "I intend i'tikaf and I stipulate that I may exit for [X] if needed."

What if I did not enter i'tikaf but want to spend the odd nights in the mosque?

This is called partial or nightly i'tikaf and is valid as a voluntary act of worship. You make the intention to perform i'tikaf for that night when you enter the mosque and your stay earns the reward of i'tikaf for that period. You are not bound by the stricter exit rules of a full ten-night i'tikaf, though you should observe the same spirit of focused worship while present.

Can I bring work or books to read during i'tikaf?

Islamic knowledge books and the Qur'an are entirely appropriate during i'tikaf and are recommended. Worldly books, novels, and non-religious material are not appropriate as they distract from worship. Work tasks (professional work) should not be brought into i'tikaf, as the purpose is a complete break from worldly preoccupations.

My mosque does not have facilities for sleeping. Can I do i'tikaf elsewhere?

The majority of scholars require i'tikaf to be performed in a mosque. If your local mosque genuinely cannot accommodate sleeping (no water, no floor space, no facilities), you may consider performing i'tikaf in a nearby mosque that does have these facilities. The requirement of the mosque is firm; performing i'tikaf in a rented hall or community center that is not a designated masjid does not fulfill the condition according to most scholars.

Is it better to do i'tikaf for all ten nights or to pray Tarawih every night without i'tikaf?

The ten nights of full i'tikaf is the Prophet's sunnah and is considered more virtuous than attending Tarawih without i'tikaf, because i'tikaf encompasses both the Tarawih and the additional night worship, while also fulfilling the confirmed sunnah of i'tikaf itself. However, for those for whom full i'tikaf is genuinely impossible, attending Tarawih every night and spending parts of the odd nights in the mosque is also a valuable practice.

Get accurate prayer times and Qibla direction anywhere in the world.