Itikaf: Its Ruling, Conditions, Permitted Activities and Invalidators
All praise belongs to Allah, Lord of the worlds. May Allah send salah and peace upon our Prophet Muhammad, his family and his Companions.
Before packing your bedding for itikaf, find out where you will stay, how long you intend to remain and how you will meet your needs outside the mosque. Many practical questions begin here. May you leave for food? Does sleep or a wet dream invalidate the retreat? What if your family needs you?
Itikaf means remaining in a mosque with the intention of worshipping Allah, giving time to prayer, the Quran, dhikr and dua. It is a Sunnah, not a duty upon every Muslim, and must not cause you to neglect an obligation or another person's binding right. Understanding its purpose and rules helps you use the time well, even if you cannot stay for all ten nights.
Its Ruling and Evidence
Itikaf is a Sunnah, particularly in Ramadan and especially during its last ten nights. Aishah, may Allah be pleased with her, described the Prophet's practice:
«كَانَ يَعْتَكِفُ الْعَشْرَ الْأَوَاخِرَ مِنْ رَمَضَانَ حَتَّى تَوَفَّاهُ اللَّهُ، ثُمَّ اعْتَكَفَ أَزْوَاجُهُ مِنْ بَعْدِهِ».
Meaning: He used to observe itikaf during Ramadan's last ten until Allah took his soul; his wives then observed itikaf after him. Al-Bukhari 2026, excerpt. Itikaf is also prescribed outside Ramadan; the Prophet observed it in Shawwal. Muslim 1173.
Someone who makes a valid vow of obedience to observe itikaf must fulfil it. The Prophet said:
«مَنْ نَذَرَ أَنْ يُطِيعَ اللَّهَ فَلْيُطِعْهُ».
Meaning: Whoever vows to obey Allah must obey Him. Al-Bukhari 6696, excerpt. Simply intending to stay for several days is not itself a vow. Ibn Baz held that a voluntary retreat may be ended, unlike a binding vowed retreat.
Conditions and the Place of Itikaf
Its conditions include:
1. Being Muslim, of sound mind and able to discern what one is doing.
2. Intending itikaf as worship of Allah. Merely sitting or sleeping in a mosque does not become itikaf without that intention.
3. Staying in a mosque, not a room at home or work simply because it is used for prayer.
4. Being free of janabah (major ritual impurity requiring ghusl), menstruation and postpartum bleeding. Maintaining wudu throughout the retreat is not a condition.
Allah says:
{وَلَا تُبَاشِرُوهُنَّ وَأَنْتُمْ عَاكِفُونَ فِي الْمَسَاجِدِ}
Meaning: Do not have intercourse with them while you are observing itikaf in the mosques. Al-Baqarah 2:187, excerpt.
A man obliged to attend congregational prayer observes itikaf in a mosque where the congregation is held, so he does not neglect it or repeatedly leave to attend elsewhere. If his retreat includes Friday, choosing a mosque that holds Jumuah is more convenient. If it does not hold Jumuah, he leaves to attend when it is obligatory upon him, then returns, as Ibn Baz explained.
Ask the mosque management which areas have the religious status of the mosque. Not every room, courtyard or car park belonging to an Islamic centre necessarily does. Follow the arrangements for accommodation, cleanliness and safety, and do not occupy space in a way that inconveniences worshippers. See Adhkar for Going to, Entering and Leaving the Masjid for mosque duas and etiquette.
Must You Fast or Stay for Ten Days?
Jurists differ about the minimum duration and whether fasting is a condition. Ibn Baz preferred the view that itikaf may last less than a day, such as an hour spent in the mosque with that intention, and that fasting is not a condition. On this view, someone unable to stay for the ten may observe one night or part of a day.
One piece of evidence concerning fasting is Umar's vow to spend one night in itikaf in al-Masjid al-Haram, which the Prophet told him to fulfil. Al-Bukhari 2042. However, saying that fasting is not a condition of itikaf does not permit someone obliged to fast Ramadan to break that fast. A person whose vow includes both fasting and itikaf should ask how to fulfil what they undertook.
When Does Itikaf in the Last Ten Begin and End?
According to the majority of scholars, someone intending the whole last ten enters the mosque before sunset after Ramadan's twentieth day, so the twenty-first night begins while they are in itikaf. Al-Nawawi explained this view when discussing Aishah's report:
«إِذَا أَرَادَ أَنْ يَعْتَكِفَ صَلَّى الْفَجْرَ ثُمَّ دَخَلَ مُعْتَكَفَهُ».
Meaning: When he intended to observe itikaf, he prayed Fajr and then entered his place of retreat. Muslim 1173, excerpt. The majority understood this as entering his separate place within the mosque after Fajr, rather than beginning itikaf then. Other scholars, including Ibn Baz, followed the apparent wording in beginning after Fajr. This is a matter of disagreement; entering before sunset also includes the first night.
Itikaf during the last ten ends when Ramadan ends, at sunset on its final day once Shawwal is established, whether Ramadan has twenty-nine days or thirty. Remaining until the Eid prayer is not required for the retreat's validity. Someone intending a shorter period starts when that intended period begins, while observing any binding vow they have made.
What May You Do Inside the Mosque?
You may eat, drink, sleep, keep yourself clean, change clothes, have lawful conversations and receive visits from your family, while protecting the mosque and respecting others. Safiyyah visited the Prophet during itikaf and spoke with him. Al-Bukhari 2035.
You do not have to spend every moment standing in prayer or reciting. Rest that helps you worship does not invalidate itikaf. But do not turn your stay into long social gatherings or constant phone use. Give prayer, recitation and dua a generous share of your time. See Qiyam al-Layl and Tahajjud for night prayer, and Comprehensive Duas of the Prophet for authentic supplications.
Leaving the Mosque for a Need
Aishah said of the Messenger of Allah:
«وَكَانَ لَا يَدْخُلُ الْبَيْتَ إِلَّا لِحَاجَةٍ، إِذَا كَانَ مُعْتَكِفًا».
Meaning: He would not enter the house except for a need when observing itikaf. Al-Bukhari 2029, excerpt. You may leave for unavoidable needs, such as using the toilet, making wudu or taking an obligatory ghusl where the facilities are located. You may obtain food or drink when it is unavailable in the mosque and nobody can bring it. Limit the outing to the need and return; do not add a shopping trip or an unnecessary visit.
Do not miss obligatory Jumuah on the grounds that you must remain in the mosque. However, going out for your daily job or returning home each night to sleep is not like leaving to use the toilet: it interrupts a continuous retreat. You can arrange separate voluntary periods when free, rather than count days interrupted by regular work trips as one continuous itikaf.
If your family needs care you are obliged to provide, or necessary financial support that nobody else can provide, give that duty priority over voluntary itikaf. Do not delay emergency assistance or necessary treatment to remain. A voluntary act does not excuse neglecting an obligation or exposing yourself to harm.
What Invalidates Itikaf or Interrupts Its Continuity?
The main practical matters are:
- Deliberate intercourse during itikaf: This invalidates it, by night or day, even when the person is outside the mosque for a permitted need. The verse prohibits intercourse during the retreat, not only inside the mosque.
- Leaving without a recognised need: This interrupts a continuous retreat. In voluntary itikaf, you may return and begin a new retreat with a new intention. An outing for shopping or sleeping at home is not a continuation of the earlier retreat.
- Deliberately causing ejaculation through sexual touching or masturbation: The majority of jurists count this among the invalidators, although scholars differ on whether it invalidates the retreat. Sexual touching and kissing with desire are prohibited during itikaf; disagreement about invalidation does not make them permissible. A wet dream is different, as explained below.
If you end the intention of itikaf, simply remaining in the mosque does not mean you are still observing it. Menstruation and postpartum bleeding prevent a woman from continuing itikaf in the mosque until she becomes pure and performs ghusl; they are not like merely losing wudu.
Ending voluntary itikaf does not mean every earlier act of worship is lost. According to Ibn Baz, ending a voluntary retreat does not by itself require you to make up the time you had planned. A vow requiring continuity or a specified time is different: restarting with a new intention does not automatically discharge that obligation.
Women and Itikaf
The Prophet's wives observed itikaf after his death, so it is prescribed for women too. According to the majority, it takes place in a mosque, not the prayer area at home; this is also Ibn Baz's ruling. A married woman needs her husband's permission for voluntary itikaf. She should have a safe place that protects her modesty and privacy, without neglecting a binding duty or exposing herself to danger.
A woman unable to observe itikaf still has many opportunities for worship: prayer when not menstruating or experiencing postpartum bleeding, dhikr, dua, charity and Quran recitation according to its rulings. Itikaf is not a condition for benefiting from Laylat al-Qadr. Being unable to stay overnight in a mosque does not close the other doors of worship.
Frequently Asked Questions
Is Itikaf Restricted to the Three Major Mosques?
Not according to Ibn Baz's ruling. It may be observed outside al-Masjid al-Haram, the Prophet's Mosque and al-Masjid al-Aqsa, subject to the mosque requirements and congregational prayer for those obliged to attend. Someone who vowed itikaf in one of these mosques should ask about that vow before substituting another mosque.
May I Observe Itikaf for One Night or a Few Hours?
Yes, according to Ibn Baz's preferred view on the minimum duration. Intend itikaf and remain in the mosque for the time you can manage. However, someone who vowed a particular period cannot replace it with a few hours without asking about that vow.
Does Sleep or Losing Wudu Invalidate Itikaf?
No. You may sleep and make wudu for prayer when needed, while keeping the prayers on time. Itikaf is not itself a prayer requiring you to maintain wudu throughout.
What If I Have a Wet Dream?
A wet dream does not invalidate itikaf because it is involuntary. If there is an emission, ghusl is required. Leave to perform it when necessary without delay, then return and continue your retreat. A wet dream is not treated like deliberate intercourse or deliberately causing ejaculation.
May I Go Home to Sleep and Then Return?
Regularly returning home to sleep interrupts a continuous retreat; it is not like going to the toilet. If you cannot stay overnight, observe voluntary itikaf for the period available, then begin a new retreat when you return another time.
May I Go to Work and Remain in Itikaf for the Rest of the Day?
On the view allowing a short duration, you can observe voluntary itikaf before or after work. But periods separated by daily departures for work are not one continuous retreat. Fulfilling your work obligations and your family's rights takes priority over voluntary itikaf.
May I Use My Phone or Check on My Family?
You may use it for lawful purposes, such as reading or necessary family contact, without disturbing others. Let it help rather than consume your time in browsing and conversations. If a situation arises that requires you to be with your family, do not neglect it because of a voluntary retreat.
May I Leave for a Medical Appointment or Emergency?
Necessary medical care is a valid need; do not delay required treatment for itikaf. Limit the outing to the need. If illness requires a prolonged stay outside the mosque, you may need to end the retreat. Ask about the particular consequences for a binding vow and any continuity it requires.
May I Leave to Visit Someone Sick or Attend a Funeral?
The basic rule is to remain in the mosque, not to leave simply for a visit or funeral as you would to use the toilet. Necessary caregiving and conditions stipulated at the beginning require further detail, so ask a scholar about your circumstances. You may end voluntary itikaf to visit someone or attend to your family, but that departure is not a continuation of the retreat. A funeral prayer held in the same mosque does not require leaving it.
May I Stipulate Permission to Leave Whenever I Want?
A condition does not turn itikaf into an ordinary stay during which you come and go as you please. Conditions mentioned at the beginning have their own rulings, especially with a vow. Explain the specific proposed condition to a scholar before relying on it.
What If Menstruation Begins During Itikaf?
She leaves the mosque and does not continue itikaf while menstruating. Once pure and after ghusl, she may return to voluntary itikaf. If her retreat was vowed, she should ask about completion or making it up according to the wording of her vow. For recitation during this time, see Can a Menstruating Woman Read the Quran and Touch the Mushaf?.
Does Istihada Prevent Itikaf Like Menstruation?
No. A wife of the Prophet observed itikaf while experiencing istihada, bleeding outside menstruation. Al-Bukhari 2037. A woman in that state follows its purification rulings and prevents blood from soiling the mosque. Not every instance of bleeding should be classified as menstruation without establishing its ruling.
I Vowed Itikaf but Became Ill or Left. What Must I Do?
The answer depends on the vow's wording, whether you specified a time or continuity, and the reason for leaving or being unable to fulfil it. Making up the retreat or expiation cannot be assigned identically to every case. Give a reliable scholar the wording and circumstances; do not assume that the rules for ending a voluntary retreat settle your vow.
Will I Miss Laylat al-Qadr's Virtue If I Do Not Observe Itikaf?
Itikaf is not a condition for the virtue of praying that night. Strive during the last ten nights wherever you are able, with faith and seeking Allah's reward, while maintaining your obligations. Being unable to observe itikaf is not a reason to abandon night prayer or dua.
Before You Begin
Arrange what your family needs, confirm that the mosque permits overnight stays, and find out about washing facilities and meals. Then enter with sincere intention, remembering that the purpose is to draw closer to Allah, not merely complete a number of nights. Rest when you need to, pray on time, and spend time with the Quran and dua as you are able.
We ask Allah to grant us sincerity and adherence to the Sunnah, and help us remember Him, thank Him and worship Him well. May Allah send salah and peace upon our Prophet Muhammad, his family and his Companions.