Itikaf: Rules, Last 10 Days of Ramadan & How to Do It
By the Editorial Team · reviewed against our sources · updated September 2026 · guidance, not a fatwa
Quick answer: I’tikaf is a spiritual retreat in which a person secludes themselves in the mosque, devoting their time to worship, prayer, Qur’an, and remembrance of Allah. It is an emphasised Sunnah especially during the last ten days of Ramadan, when the Prophet Muhammad ﷺ regularly observed it in pursuit of Laylatul Qadr. It requires a mosque, a sincere intention, and withdrawal from ordinary worldly activity.
Dates use the Umm al-Qurā calendar and are approximate — the start of each Islamic month depends on the local moon sighting.
Key takeaways
- I’tikaf is a spiritual retreat of seclusion in the mosque devoted to worship.
- It is an emphasised Sunnah in the last ten days of Ramadan, following the Prophet’s practice.
- There are different types: obligatory (by a vow), the emphasised Sunnah of the last ten days, and voluntary.
- Its core conditions are performing it in a mosque and forming a sincere intention (niyyah).
- Leaving the mosque without a valid need generally breaks i’tikaf.
- Scholars differ on where a woman may perform i’tikaf and on some conditions such as fasting.
What is I’tikaf?
I’tikaf (also spelt itikaf or i’tikāf) means to remain devoted to something. In Islamic practice it refers to secluding oneself in the mosque for a set period with the intention of worshipping Allah — praying, reciting Qur’an, making dhikr and dua, and withdrawing from the distractions of daily life. It is a practice with deep roots in the Sunnah and a means of drawing near to Allah, particularly at the close of Ramadan. In essence, i’tikaf is a deliberate pause from worldly routine so that the heart can be fully turned toward its Creator. The one in retreat sets aside work, socialising, and everyday errands, giving the soul an undistracted opportunity to reflect, repent, and reconnect with the Qur’an during the most blessed days of the year.
The emphasised Sunnah of the last ten days
It is reported in Sahih al-Bukhari and Sahih Muslim that the Prophet ﷺ would observe i’tikaf during the last ten days of Ramadan, and that his wives continued the practice after him. It is also related that in the year of his passing he observed i’tikaf for twenty days, showing the great importance he placed upon it. This is the most emphasised form of i’tikaf, closely tied to the search for Laylatul Qadr, the Night of Decree that falls within these nights. Someone performing this Sunnah typically enters the mosque before the sunset that begins the twenty-first night and remains until the end of Ramadan, dedicating this final stretch entirely to worship away from ordinary concerns.
Types of I’tikaf
- Obligatory (wajib): I’tikaf becomes obligatory when a person makes a vow (nadhr) to perform it, in which case they must fulfil what they pledged.
- Emphasised Sunnah: The i’tikaf of the last ten days of Ramadan, following the consistent practice of the Prophet ﷺ.
- Voluntary (mustahabb): I’tikaf performed at any other time of the year, for any length, as a recommended act of worship.
Conditions of I’tikaf
Scholars agree on certain core conditions, while differing on details:
- The mosque: I’tikaf is performed in a mosque. Many scholars specify a mosque in which congregational prayers are held, so that the person does not need to leave for the five daily prayers.
- Intention (niyyah): A sincere intention to perform i’tikaf for the sake of Allah is required.
- Fasting: Scholars differ here. Some, including the Hanafi school, hold that fasting is a condition for the Sunnah i’tikaf of Ramadan; others, such as the Shafi’i school, do not consider fasting a condition for voluntary i’tikaf. In practice, the last-ten-days i’tikaf naturally coincides with the Ramadan fast.
What breaks I’tikaf
I’tikaf is broken by leaving the mosque without a valid reason, and by marital relations. Deliberately abandoning the seclusion ends it. Because the essence of i’tikaf is uninterrupted devotion within the mosque, a person should plan ahead so that unnecessary departures are avoided.
Permissible reasons to leave
The person in i’tikaf may leave the mosque for genuine, unavoidable needs: using the toilet, performing wudu or a required bath (ghusl), and, if food is not brought to them, obtaining food. Leaving for these necessities does not break the i’tikaf, provided the absence is limited to the need itself and the person returns promptly. Needs that could be handled without leaving should be arranged within the mosque where possible.
Women’s I’tikaf
The question of where a woman may perform i’tikaf is one on which scholars hold differing views. Some scholars permit a woman to observe i’tikaf in a designated prayer area within her home (her musalla), while many others, taking the practice of the Prophet’s wives as evidence, hold that i’tikaf should be performed in the mosque. A woman wishing to make i’tikaf should follow the guidance of trusted local scholars and take into account her safety, family responsibilities, and the facilities available. Both positions are held by respected scholars and should be treated with respect.
Etiquette and how to make the most of it
The value of i’tikaf lies in sincere, focused worship. Recommended practices include: consistent voluntary prayer and the nightly taraweeh; regular recitation and reflection on the Qur’an; abundant dhikr, seeking forgiveness, and personal supplication; and minimising idle talk, disputes, and unnecessary use of devices. Many people set a simple daily routine to balance rest, worship, and study. The goal is not merely to be physically present in the mosque but to cultivate presence of heart and a genuine connection with Allah during these blessed days.
It also helps to enter i’tikaf with realistic expectations and modest, sustainable goals: a fixed portion of Qur’an each day, set times for supplication, and adequate rest so that the nights can be spent in prayer. Beginners may start with a shorter retreat — even a single night or a few days — rather than attempting the full ten days at once. What matters is sincerity and consistency, so that i’tikaf becomes a source of lasting spiritual renewal rather than exhaustion.
Learn more
Continue with our related guides: Laylatul Qadr, the Night of Power sought during i’tikaf, and Taraweeh, the Ramadan night prayer. For a wider overview of the Islamic calendar and observances, visit our Islamic information hub.
This article is general educational guidance, not a fatwa. Religious rulings can vary by school of thought and individual circumstance; for decisions that affect your worship or obligations, please consult a qualified local scholar.
Frequently asked questions
What is I'tikaf?
I'tikaf is a spiritual retreat in which a person secludes themselves in the mosque with the intention of worshipping Allah — praying, reciting Qur'an, making remembrance and supplication — while withdrawing from the distractions of everyday life.
When is I'tikaf performed?
The most emphasised i'tikaf is during the last ten days of Ramadan, following the Prophet's practice, and is closely tied to seeking Laylatul Qadr. Voluntary i'tikaf can also be performed at other times of the year.
What are the types of I'tikaf?
There are three: obligatory (when made binding by a vow), the emphasised Sunnah of the last ten days of Ramadan, and voluntary i'tikaf performed at other times as a recommended act of worship.
What are the conditions of I'tikaf?
The core conditions are performing it in a mosque (many scholars specify one where congregational prayers are held) and forming a sincere intention. Scholars differ on whether fasting is a condition for the Ramadan i'tikaf.
What breaks I'tikaf?
Leaving the mosque without a valid reason and marital relations break i'tikaf. A person may leave only for genuine needs such as using the toilet, performing wudu or ghusl, or obtaining food if it is not brought to them, returning promptly.
Can women perform I'tikaf?
Yes, though scholars differ on where. Some permit a woman to observe i'tikaf in a designated prayer area at home, while many hold it should be in the mosque, citing the practice of the Prophet's wives. A woman should follow trusted local scholarly guidance.
Is fasting required for I'tikaf?
Scholars differ. Some, including the Hanafi school, consider fasting a condition for the Ramadan Sunnah i'tikaf; others, such as the Shafi'i school, do not require it for voluntary i'tikaf. In practice, the last-ten-days i'tikaf coincides with the Ramadan fast.