Iʿtikāf: The Sacred Retreat of the Heart
Among the great gifts Allah has granted His servants are seasonal acts of worship through which believers renew their relationship with Him, correct their spiritual direction, and compensate for shortcomings in their devotion. These sacred seasons allow the heart to return to its Lord with renewed sincerity.
One of these profound devotional practices is Iʿtikāf, a Sunnah deeply rooted in the life of the Prophet Muhammad ﷺ and continued by his Companions and the generations that followed.
Through Iʿtikāf, a believer temporarily withdraws from the distractions of worldly life and dedicates himself entirely to the remembrance and worship of Allah. It is not merely a physical stay in the mosque; rather, it is a retreat of the heart, a moment in life where the believer pauses from the rush of the world and reconnects with the Creator.
Linguistically, the Arabic word Iʿtikāf refers to turning one’s attention toward something and remaining devoted to it. The root verb ʿakafa means to attach oneself to something persistently, focusing on it without turning away.
Because of this meaning, a person who remains in the mosque devoted to worship is described as ʿākif or muʿtakif, meaning one who is devoted and stationed there for the sake of Allah.
In Islamic jurisprudence, Iʿtikāf is defined as:
Remaining in the mosque with the intention of drawing closer to Allah, whether during the day or the night.
Thus, the essence of Iʿtikāf lies in intentional residence in the mosque for the purpose of worship and devotion to Allah.
Objectives of Iʿtikāf
The central aim of Iʿtikāf is the complete turning of the heart toward Allah. By withdrawing from distractions, the believer redirects his thoughts, intentions, and emotions toward divine remembrance and obedience.
Iʿtikāf creates a spiritual solitude in which the servant becomes alone with his Lord. In that quiet environment of devotion, the believer finds intimacy with Allah through prayer, Qur’an recitation, supplication, and reflection.
During Iʿtikāf, the believer temporarily withdraws from the constant engagement with people and worldly affairs. The heart becomes free from preoccupation with material concerns and instead becomes occupied with the remembrance of Allah.
Gradually, the remembrance of Allah replaces worldly thoughts. His love occupies the heart, His remembrance fills the mind, and contemplation of His pleasure becomes the believer’s greatest concern.
When this transformation occurs, the believer finds comfort in Allah instead of people. This spiritual companionship prepares the servant for the ultimate solitude of the grave, when no companion will remain except one's relationship with Allah.
For this reason, scholars describe this state as the greatest objective of Iʿtikāf.
The Ruling of Iʿtikāf
Iʿtikāf is a confirmed Sunnah for both men and women. The four major schools of Islamic jurisprudence—Ḥanafī, Mālikī, Shāfiʿī, and Ḥanbalī—agree upon its legitimacy and recommendation.
Scholars have even reported a consensus regarding its prescribed nature as an act of worship.
The practice of Iʿtikāf is firmly established in the Sunnah of the Prophet ﷺ.
Abū Saʿīd al-Khudrī رضي الله عنه narrated:
The Messenger of Allah ﷺ performed Iʿtikāf during the first ten days of Ramadan. Then he performed Iʿtikāf during the middle ten days in a Turkish tent with a mat at its entrance. Then he raised his head and spoke to the people and they came near him. He said:
“I performed Iʿtikāf during the first ten days seeking this night (Laylat al-Qadr). Then I performed Iʿtikāf during the middle ten days. Then I was informed that it is in the last ten nights. So whoever among you wishes to perform Iʿtikāf, let him do so.”
The people then performed Iʿtikāf with him.
ʿĀʾishah رضي الله عنها reported:
The Prophet ﷺ performed Iʿtikāf, and some of his wives performed Iʿtikāf with him. One of them was experiencing prolonged bleeding, and she would sometimes place a container beneath her to collect the blood.
This narration demonstrates that women are also permitted to perform Iʿtikāf, provided the conditions of worship are maintained.
Although it is most commonly observed during Ramadan, Iʿtikāf is not restricted to this month.
The Prophet ﷺ performed Iʿtikāf outside Ramadan as well, which indicates that the practice is permissible throughout the year.
His Companions and wives continued this practice after his death, confirming that it remains a living Sunnah until the Day of Judgment.
The scholars unanimously agree that Iʿtikāf is a Sunnah and not obligatory.
However, it becomes obligatory in certain cases:
- When it is made a vow (nadhr)
If a person vows to perform Iʿtikāf, fulfilling that vow becomes mandatory.
- According to the Mālikī school
In the Mālikī school, once a person begins Iʿtikāf, completing it becomes obligatory.
The Ḥanafī scholars consider Iʿtikāf:
- A confirmed Sunnah (Sunnah Mu’akkadah) during the last ten nights of Ramadan.
- Recommended (mustahabb) at other times.
The famous Ḥanafī scholar Ibn ʿĀbidīn wrote in Radd al-Muḥtār that the Iʿtikāf of the last ten nights is a communal Sunnah, meaning that if some members of the community perform it, the obligation of preserving the Sunnah is fulfilled.
Imām al-ʿAdawī described Iʿtikāf as:
“One of the recommended acts of goodness that the scholars have encouraged.”
Imām al-Kharqī stated:
“Iʿtikāf is a Sunnah unless it is made obligatory through a vow.”
Imām Ibn al-Munḏir recorded a consensus among scholars that:
Iʿtikāf is not obligatory upon people unless they obligate it upon themselves through a vow.
The Place of Iʿtikāf and the Most Virtuous Mosques
One of the essential aspects of Iʿtikāf concerns the place in which it is performed. Islamic scholars unanimously agree that Iʿtikāf must take place in a mosque. This ruling is established through clear textual evidence from the Qur’an and the practice of the Prophet ﷺ.
Allah says:
“And do not have relations with them while you are in retreat in the mosques.”
(Al-Baqarah 2:187)
This verse explicitly associates Iʿtikāf with mosques, making them the designated place for this act of worship. Likewise, the Prophet ﷺ himself never performed Iʿtikāf anywhere except in the mosque, further confirming this ruling through his practice.
Although Iʿtikāf can be performed in any mosque, scholars agree that some mosques hold greater virtue due to their sacred status in Islam.
The three most virtuous mosques for Iʿtikāf are:
- Al-Masjid al-Ḥarām (The Sacred Mosque in Makkah)
- Al-Masjid al-Nabawī (The Prophet’s Mosque in Madinah)
- Al-Masjid al-Aqṣā (in Jerusalem)
Among these, the Sacred Mosque in Makkah is the most virtuous, followed by the Prophet’s Mosque, and then Al-Masjid al-Aqṣā.
While scholars agree that Iʿtikāf must occur in a mosque, they differed regarding which mosques qualify for valid Iʿtikāf.
The Mālikī and Shāfiʿī scholars hold that Iʿtikāf is valid in any mosque, regardless of its size or status.
Their evidence comes directly from the Qur’anic verse:
“While you are in retreat in the mosques.” (Al-Baqarah 2:187)
Since the verse uses the plural word “mosques” without restricting it to specific ones, they argue that the ruling applies generally to all mosques.
The Mālikī scholar al-ʿAdawī stated:
“Iʿtikāf can only occur in mosques. It is not valid in homes, shops, or similar places. Allah says: ‘while you are in retreat in the mosques.’ Therefore, Iʿtikāf is valid in any mosque, even if it is not among the three sacred mosques, and regardless of the country in which it is located.”
Similarly, the Shāfiʿī jurist Imām al-Khaṭīb al-Shirbīnī explained that Iʿtikāf is valid in any mosque because of the Qur’anic command and the consensus of scholars regarding its legitimacy.
However, he also noted that a congregational mosque (masjid jāmiʿ)—one in which the Friday prayer is held—is preferable for Iʿtikāf. This preference helps the worshipper avoid leaving the mosque to attend the Friday prayer and allows greater participation in communal worship.
The Ḥanafī and Ḥanbalī scholars added another condition. According to their view, the mosque should be one in which congregational prayers are regularly established.
Their reasoning is practical and rooted in the purpose of Iʿtikāf. If a person performing Iʿtikāf is required to attend congregational prayer, performing the retreat in a mosque where congregational prayers are held prevents the need to leave the mosque frequently.
The Ḥanafī scholar Ibn ʿĀbidīn described Iʿtikāf as:
“Remaining in a mosque for worship, even if the person is a discerning minor, in a mosque where congregational prayers are established.”
Some Ḥanafī jurists even considered it preferable that the mosque be one in which the five daily prayers are regularly performed with an imam and a mu’adhdhin.
Even scholars who do not consider it a strict condition generally agree that performing Iʿtikāf in a congregational mosque is more virtuous.
Imām al-Khaṭīb al-Shirbīnī explains that choosing such a mosque carries several benefits:
- It avoids the need to leave the mosque for Friday prayer.
- It allows participation in larger congregational prayers.
- It increases opportunities for communal remembrance and learning.
Thus, although Iʿtikāf is valid in any mosque, selecting a mosque where congregational prayers are regularly held is usually the more complete and beneficial choice.
Minimum and Maximum Duration of Iʿtikāf
Scholars have discussed the minimum period required for Iʿtikāf. The majority of jurists hold that there is no fixed minimum duration defined by Islamic law.
According to the majority view, the minimum duration is any period of time that can be considered Iʿtikāf according to common understanding. This may be a short stay in the mosque, whether brief or extended.
The reasoning behind this opinion is based on the linguistic meaning of Iʿtikāf. Since the word simply refers to remaining devoted to something, it can apply to both short and long durations. Because the Sharīʿah did not specify a particular minimum time, the ruling remains open.
For this reason, some jurists recommended that when a person enters the mosque, he may intend Iʿtikāf even for the short period he remains there. By making this intention, the believer gains the reward of Iʿtikāf for the time spent in the mosque.
This practice reflects the generosity of Islamic worship, where even brief moments of sincere devotion can carry great reward.
Just as there is no fixed minimum duration, there is no maximum limit for Iʿtikāf.
Imām al-Nawawī wrote in al-Majmūʿ:
“The longer the Iʿtikāf, the better it is. There is no limit to its maximum duration. In fact, it would even be valid for a person to perform Iʿtikāf for his entire lifetime, and it is permissible to vow such a retreat.”
Similarly, the scholar Ibn al-Mulaqqin reported a scholarly consensus on this matter, stating that:
“The scholars unanimously agreed that there is no maximum limit for Iʿtikāf.”
The duration of Iʿtikāf is generally determined by the intention of the person performing it.
If a person intends to perform Iʿtikāf for a specific period, it is recommended that he complete that period in full. However, if he leaves before completing it, this does not invalidate his worship, because voluntary acts of devotion do not become obligatory simply by beginning them.
On the other hand, if a person enters the mosque with a general intention of Iʿtikāf without specifying a time, his Iʿtikāf continues for as long as he remains in the mosque.
This flexibility reflects the mercy and practicality of Islamic worship, making it accessible for believers in different circumstances.
The Spirit of the Last Ten Nights
Among the most emphasised forms of Iʿtikāf is the retreat observed during the last ten nights of Ramadan, following the example of the Prophet Muhammad ﷺ. His practice illustrates both the spiritual importance of this act of devotion and the believer’s longing to seek the immense blessings hidden within these nights.
At the beginning, the Prophet ﷺ did not limit his Iʿtikāf to the final ten nights. He first observed Iʿtikāf during the first ten days of Ramadan, seeking the blessed Laylat al-Qadr. When he did not find it then, he continued his retreat during the middle ten days. Later he was informed that Laylat al-Qadr lies within the last ten nights of Ramadan, and from that time onward he consistently devoted these nights to Iʿtikāf until Allah took his soul.
Thus, the practice eventually settled upon the last ten nights, making them the most virtuous period for Iʿtikāf.
Abū Saʿīd al-Khudrī رضي الله عنه narrated that the Messenger of Allah ﷺ performed Iʿtikāf during the first ten days of Ramadan, then during the middle ten days, staying in a small tent set up in the mosque. At one point he removed the covering of the tent and addressed the people, saying:
“I observed Iʿtikāf during the first ten nights seeking this night. Then I observed Iʿtikāf during the middle ten nights. Then I was informed that it is in the last ten nights. So whoever wishes to perform Iʿtikāf, let him do so.”
The Companions then joined him in the retreat. The Prophet ﷺ also said:
“I was shown that it occurs on an odd night, and that I would prostrate in water and mud the following morning.”
Abū Saʿīd رضي الله عنه reported that on the morning of the twenty-first night, rain fell and water began to drip through the roof of the mosque. After the dawn prayer, the Prophet ﷺ emerged with traces of mud and water on his forehead and nose, confirming the vision he had seen.
(Reported by al-Bukhārī, 813, and Muslim, 1167).
This narration beautifully illustrates how the vision of the Prophet ﷺ came true, and how he experienced the sign he had been shown. It also reflects the deep eagerness of the Prophet ﷺ and his Companions to seek the greatest blessings and to devote themselves to worship during the most virtuous moments.
There is no disagreement among scholars that the most virtuous form of Iʿtikāf is that performed during the last ten nights of Ramadan, because this was the regular practice of the Prophet ﷺ.
These nights contain Laylat al-Qadr, a night described in the Qur’an as better than a thousand months, making them a unique opportunity for the believer to draw nearer to Allah through prayer, remembrance, supplication, and reflection.
ʿĀʾishah رضي الله عنها narrated:
“The Prophet ﷺ used to perform Iʿtikāf during the last ten nights of Ramadan until Allah took his soul, and then his wives observed Iʿtikāf after him.”
(Reported by al-Bukhārī, 2026).
Etiquettes of Iʿtikāf
For Iʿtikāf to achieve its true spiritual purpose, the worshipper should observe certain etiquettes that preserve the sanctity of the retreat and help the heart focus entirely on Allah.
The person observing Iʿtikāf should remain in the mosque and avoid leaving it except for necessary needs. ʿĀʾishah رضي الله عنها narrated that the Prophet ﷺ would not enter the house while in Iʿtikāf except for a genuine need (reported by al-Bukhārī). Some scholars allowed leaving for important religious duties such as visiting the sick or assisting others in need, as reported from Ibn ʿAbbās رضي الله عنهما. If someone expects to leave for necessary matters, it is preferable to stipulate this intention at the beginning of the retreat.
Iʿtikāf is meant for spiritual focus, not for gatherings or lengthy conversations. The Prophet ﷺ would set up a small enclosure in the mosque and devote his time to worship. Scholars therefore encouraged limiting interaction with people and avoiding idle speech so that the heart remains fully engaged in remembrance of Allah.
The spirit of Iʿtikāf lies in dedicating one’s time to acts of devotion—reciting the Qur’an, remembering Allah, making duʿāʾ, and reflecting on His signs. When these etiquettes are observed, Iʿtikāf becomes a true purification of the soul, allowing the believer to emerge with a renewed heart and stronger connection with Allah.
Disclaimer
The views expressed in this article are the author’s own and do not necessarily mirror Islamonweb’s editorial stance.
Leave A Comment