Itikaf: conditions and rules in the four schools

Quick answer: Itikaf (seclusion in the mosque for worship) is reported to be a confirmed sunnah in the last ten days of Ramadan. The major schools agree on four basic conditions: intention, being Muslim, sanity, and remaining within a mosque. They differ on the minimum time, whether fasting is required, and where a woman may observe it. Ramadan 2027 is expected to begin on Monday 8 February 2027 (Umm al-Qura calendar), so the last ten nights are expected to start at sunset on Saturday 27 February; moon sighting can move both dates by a day.

What itikaf is, and the three kinds the Hanafi school lists

The word means staying in or holding to something. In law it’s a stay in the mosque with the intention of worship, set apart from ordinary affairs. The practice involves secluding oneself in a mosque for a period of time, devoting the days to worship and staying away from worldly affairs.

Hanafi jurisprudence divides itikaf into three categories. The first is the vowed itikaf, which is necessary (wajib). The second is the emphasised sunnah of the last ten days, which is classed as a communal sunnah: if at least one person in a locality performs it, the duty is discharged for the community. The third is the voluntary (nafl or mustahabb) form, which may be performed at any time of the year, for any duration, and does not require fasting.

The Shafi’i, Maliki and Hanbali schools agree that itikaf is a recommended practice rather than an obligation, becoming obligatory only through a vow. The report below is the basis for the Ramadan practice.

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، عَنْ عُرْوَةَ بْنِ الزُّبَيْرِ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ زَوْجِ النَّبِيِّ صلى الله عليه وسلم أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ يَعْتَكِفُ الْعَشْرَ الأَوَاخِرَ مِنْ رَمَضَانَ حَتَّى تَوَفَّاهُ اللَّهُ، ثُمَّ اعْتَكَفَ أَزْوَاجُهُ مِنْ بَعْدِهِ‏.‏

Narrated `Aisha:(the wife of the Prophet) The Prophet (ﷺ) used to practice I`tikaf in the last ten days of Ramadan till he died and then his wives used to practice I`tikaf after him

The Prophet Muhammad ﷺ is reported here to have kept this practice until his death, and the report adds that his wives continued it afterwards. It’s in Sahih al-Bukhari, which is why the schools treat the last ten days as the model period.

Expected dates for Ramadan 2027

As of 31 October 2026, the expected first day of Ramadan 2027 is Monday 8 February 2027 on the Umm al-Qura calendar, subject to moon sighting. That’s 100 days from today. Umm al-Qura is a calculated calendar. Many communities start the month only when the crescent is seen.

If the crescent isn’t sighted on the evening in question, Sha’ban completes 30 days and Ramadan starts on Tuesday 9 February 2027. The itikaf dates move with it. Check the Ramadan dates page and your own mosque’s announcement before booking leave from work.

Milestone Expected date (Umm al-Qura) If the start is a day later
1 Ramadan Monday 8 February 2027 Tuesday 9 February 2027
Night of 21 Ramadan begins (sunset) Saturday 27 February 2027 Sunday 28 February 2027
End of Ramadan (29 days) Monday 8 March 2027 A day later, with the later start

These are expected dates as of 31 October 2026, taken from Embrace Relief’s Ramadan 2027 guide and Baaqi’s countdown page. Please check the current announcement before acting. The last column is a simple one-day shift, not a published figure. You can also convert dates with the Hijri converter.

Conditions the schools share

Intention (niyyah) comes first. In the Hanafi presentation on SeekersGuidance, one condition is to intend it, and the other is not to be in a state of major ritual impurity, meaning anything that requires ghusl. The same source adds that a person should make the general itikaf intention every time they enter a mosque.

The mosque is the other shared point. SeekersGuidance, citing the scholars’ agreement, states that a man’s itikaf is valid only in a mosque. The same article lists works such as Ibn ‘Abidin’s Radd al-Muhtar, Nawawi’s al-Majmu’ and Shirbini’s Mughni al-Muhtaj as its references.

Which mosque counts is where opinions split. The Hanafi and Hanbali schools require a mosque where congregational prayers are held, while the preferred view in the Maliki and Shafi’i schools is that any mosque is valid. For the Maliki school, the Risala chapter on itikaf states that itikaf is valid in any mosque.

The four schools side by side

The table gives the commonly reported positions. Summaries online word some points differently, and the notes below the table say where.

School Minimum time Fasting Mosque and women
Hanafi Vowed itikaf: a full day and night. Voluntary: short (see notes) Required for the vowed form; not for voluntary itikaf Mosque with congregational prayer for men. Women: prayer area at home, or the mosque
Maliki A day and a night A condition Any mosque. Women: the mosque
Shafi’i What custom regards as seclusion; a short stay can count Not a condition; better with fasting Any mosque valid, a congregational one preferred. Women: the mosque
Hanbali Short; better a day (see notes) Not a condition; better with fasting Mosque with congregational prayer. Women: the mosque in most summaries

The Hanafi voluntary minimum is reported two ways. One Hanafi-based guide gives a moment as the minimum for the recommended itikaf, while a fatwa on IslamWeb quotes the Hanafi scholar Ibn ‘Abidin in his Hashiyah, who gave the minimum as an hour. IslamWeb’s overview notes that the majority of scholars take the minimum to be whatever custom regards as itikaf.

On the Hanbali and Shafi’i side, IslamWeb adds that these scholars consider it better for itikaf to last no less than one day. The Maliki minimum is stated there as a day and a night.

Fasting: where the schools part

The fasting question is the clearest dividing line. The Shafi’i, Maliki and Hanbali schools differ from the Hanafi school in that they don’t require fasting as a condition for validity, according to Wikipedia’s summary, but that sentence needs a caveat. The Maliki school does treat fasting as a condition, as the Risala says: itikaf can only be done while fasting. A summary on Islam365 lists the Maliki school as requiring it and the Shafi’i and Hanbali schools as not making it a condition, though they regard combining fasting with itikaf as better.

Within the Hanafi school the answer depends on the type. The vowed itikaf has a minimum of a full day and night, and fasting goes with it. Many Hanafi scholars attach fasting to the sunnah form as well. That’s rarely a practical issue in Ramadan, since the person is fasting anyway.

Leaving the mosque, and what ends itikaf

The person in itikaf shouldn’t leave the mosque except for essential needs, such as using the lavatory or performing the ritual bath. A summary from Human Appeal adds that there’s broad agreement on necessities, including leaving if the building has to be evacuated. The details are strictest for the sunnah and vowed forms.

A Hanafi answer on SeekersGuidance, citing Radd al-Muhtar, says leaving to take a quick ghusl before Friday prayer is permitted provided the person wasn’t already in wudu. It applies that to the sunnah itikaf. For voluntary itikaf, it says leaving at any time is permitted.

Friday prayer shapes the choice of mosque. If a vowed itikaf overlaps Friday prayer, the person must do it in a congregational mosque to avoid leaving, unless they set a condition for leaving according to the Shafi’i school. Ramadan 2027 includes several Fridays, so the question is worth asking your imam early.

Several things end an itikaf. Leaving the mosque without necessity ends it, as does sexual intercourse (per Quran 2:187), and, in Hanafi law, breaking the fast during a Ramadan itikaf. The verse itself speaks of those staying in the mosques.

أُحِلَّ لَكُمْ لَيْلَةَ ٱلصِّيَامِ ٱلرَّفَثُ إِلَىٰ نِسَآئِكُمْ ۚ هُنَّ لِبَاسٌۭ لَّكُمْ وَأَنتُمْ لِبَاسٌۭ لَّهُنَّ ۗ عَلِمَ ٱللَّهُ أَنَّكُمْ كُنتُمْ تَخْتَانُونَ أَنفُسَكُمْ فَتَابَ عَلَيْكُمْ وَعَفَا عَنكُمْ ۖ فَٱلْـَٰٔنَ بَٰشِرُوهُنَّ وَٱبْتَغُوا۟ مَا كَتَبَ ٱللَّهُ لَكُمْ ۚ وَكُلُوا۟ وَٱشْرَبُوا۟ حَتَّىٰ يَتَبَيَّنَ لَكُمُ ٱلْخَيْطُ ٱلْأَبْيَضُ مِنَ ٱلْخَيْطِ ٱلْأَسْوَدِ مِنَ ٱلْفَجْرِ ۖ ثُمَّ أَتِمُّوا۟ ٱلصِّيَامَ إِلَى ٱلَّيْلِ ۚ وَلَا تُبَٰشِرُوهُنَّ وَأَنتُمْ عَٰكِفُونَ فِى ٱلْمَسَٰجِدِ ۗ تِلْكَ حُدُودُ ٱللَّهِ فَلَا تَقْرَبُوهَا ۗ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ ءَايَٰتِهِۦ لِلنَّاسِ لَعَلَّهُمْ يَتَّقُونَ

It has been made permissible for you the night preceding fasting to go to your wives [for sexual relations]. 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 for worship in the mosques. These are the limits [set by] Allah, so do not approach them. Thus does Allah make clear His ordinances to the people that they may become righteous.

Menstruation also interrupts it. One guide lists menstruation as a bar to beginning or continuing itikaf. On what follows, the Maliki Risala says that once a woman is pure again she should return to the mosque immediately. A Hanafi-based source gives a different route: the makeup itikaf runs from the start of Maghrib to the following day’s Maghrib. A scholar can say which applies to a particular person.

Women and itikaf

All the schools hold that itikaf is open to women. Human Appeal notes that the Prophet’s wives are reported to have observed it, and no school denies that it’s open to women. The Bukhari report below describes tents set up in the mosque for some of them, and it shows the Prophet ﷺ’s response when several wives wanted to join.

مَا هَذَا ". فَأُخْبِرَ فَقَالَ النَّبِيُّ صلى الله عليه وسلم " آلْبِرُّ تُرَوْنَ بِهِنَّ ". فَتَرَكَ الاِعْتِكَافَ ذَلِكَ الشَّهْرَ، ثُمَّ اعْتَكَفَ عَشْرًا مِنْ شَوَّالٍ.

Narrated `Amra:Aisha said, "the Prophet (ﷺ) used to practice I`tikaf in the last ten days of Ramadan and I used to pitch a tent for him, and after offering the morning prayer, he used to enter the tent." Hafsa asked the permission of `Aisha to pitch a tent for her and she allowed her and she pitched her tent. When Zainab bint Jahsh saw it, she pitched another tent. In the morning the Prophet (ﷺ) noticed the tents. He said, 'What is this?" He was told of the whole situation. Then the Prophet (ﷺ) said, "Do you think that they intended to do righteousness by doing this?" He therefore abandoned the I`tikaf in that month and practiced I`tikaf for ten days in the month of Shawwal

The schools differ on the place. The Hanafi school holds that a woman can observe it in her designated prayer area at home. SeekersGuidance’s Hanafi page states that women may remain in their prayer area at home, or in the mosque, though the latter is normally somewhat disliked.

On the other side, the majority view and the new Shafi’i position (al-madhhab al-jadid) hold that a woman’s itikaf is like a man’s, valid only in a mosque, so not in the prayer space of her home. Human Appeal reports the same for the Maliki and Hanbali schools, subject to her family’s agreement and a mosque with suitable, safe provision. One online guide, Makkah Compass, places the Hanbali school with the Hanafi view on home itikaf, so the sources disagree here.

Many mosques in Western countries have no overnight space for women, and that’s often what decides the matter in practice. Human Appeal makes the same point.

Planning the ten days from the UK, US, Canada, Australia or Europe

The steps below are practical suggestions, not rulings. Your mosque’s own rules and your scholar’s guidance come first.

  1. Ask your mosque in Sha’ban. Find out whether it hosts itikaf, whether registration is needed, and whether there’s space for women.
  2. Check its type. Ask whether it holds daily congregational prayers and Friday prayer, since the schools treat these points differently.
  3. Choose your length. Full ten days, a few nights, or a shorter stay. The Hanafi page quotes a principle that what can’t be done completely shouldn’t be abandoned completely.
  4. Plan work and family. Ask your imam how your school treats working or studying during itikaf.
  5. Prepare the essentials. Pack bedding, toiletries, and a reading plan. The Quran in 30 days plan can be adapted, and the downloads page has printable planners.
  6. Use the right timetable. Local fasting times are on the Ramadan timetables page.

If a day or two is all you can manage, the Shafi’i and Hanbali schools’ shorter minimum is often the position people consult. For the Hanafi school, a shorter itikaf by a woman at home is described as valid and recommended even outside Ramadan. The Prophet ﷺ himself is reported to have made up a missed itikaf with ten days in Shawwal.

This article reports the positions found in the sources listed below. It isn’t a ruling. For your own circumstances, such as health, work or caring duties, ask a qualified scholar.

Sources

This article explains what the four Sunni schools say and links its sources. It is not a fatwa. Dates are expected dates and depend on moon sighting where you live. Ask a qualified scholar about your own situation.

Header image: illustration, AI-generated.