Skip to content
Joyful Muslims
Store
Get the app
Worship

What is iʿtikāf? Why do Muslims spend the last ten nights of Ramadan in the masjid?

The Prophet ﷺ spent the last ten nights of every Ramadan in the masjid, cut off from everything except worship. The classical scholars preserved his exact practice — and one annual window each year to join him in it.

10 passages from 5 books in the library

Iʿtikāf is secluding oneself in the masjid for devoted worship, the practice the Prophet ﷺ kept in the last ten nights of every Ramadan. Al-Ghazali, in his book on poverty and asceticism, describes the spirit of true retreat — leaving the world as it is rather than seeking to build up a place for oneself. He affirms in the Book of Repentance that the best nights of Ramadan are its last ten, and notes the view that the exact night of value, like Laylat al-Qadr, is left unspecified, so the seeker watches all ten.

Drawn from the classical sources below — in the scholars' own words.

Where the answer comes from

The classical approach.

These passages are drawn from 5 books by Ibn al-Qayyim and Ibn Battuta — part of the classical Sunni tradition that carries over a thousand years of reflection on the Qurʾān, the authentic Sunnah, and the consensus of the early community. Nothing below is a paraphrase. The words are the scholars' own, translated from the original Arabic manuscripts.

Read them closely. If a passage doesn't sit right, open the full book in the library and listen to the chapter around it. Context in the classical tradition is everything.

Cover of Al-Ghunya li-Ṭālibī Ṭarīq al-Ḥaqq — Volume One
Al-Ghunya li-Ṭālibī Ṭarīq al-Ḥaqq — Volume One
Shaykh Abd al-Qadir al-Jilani · Timeless Classics
  1. "I have fasted, and upon your provision I have broken my fast. Glory be to you and with your praise, O Allah, except from us, for you are the all-hearing, the all-knowing. Book of Itikaf. It is recommended to perform Itikaf. Itikaf should only be performed in a mosque where congregational prayers are held, and it is preferable to do it in a central mosque the itikaf spans days that include a Friday. Itikaf is valid without fasting but it is better to do it while fasting as it helps to focus the mind, aids in subduing the self, and aligns with the purpose of itikaf. Itikaf involves confining oneself to a specific place and adhering to it consistently. Allah"

  2. "says in Surah Al-Anbiya, what are these statues to which you are devoted? It is a practice inherited from the Prophet Muhammad, peace be upon him and his companions, as the Prophet performed itikaf during the last ten days of Ramadan and continued to do so until Allah took his soul. He encouraged his companions to do the saying, whoever wishes to perform itikaf should do so during the last ten days. During itikaf, one should engage in activities that bring them closer to Allah, such as reciting the Quran, glorifying Allah, proclaiming his oneness, and reflecting. One should avoid speech and actions that"

Cover of al-Fawāʾid — Points of Benefit, Volume Two
al-Fawāʾid — Points of Benefit, Volume Two
Ibn al-Qayyim · Timeless Classics

14th century · Damascus, Syria
Madārij al-Sālikīn — the classical map of the spiritual journey — and a vast body of work on the soul, love, the traps of the ego, and the nature of the heart.
More on Ibn al-Qayyim → · Provenance →

  1. "the reality of devoted retreat: his people's portion was retreat upon images, and his portion was retreat upon the Majestic Lord. Al-tamathil is the plural of timthal, meaning fashioned forms. So the heart's attachment to other than God, its preoccupation with that other and its leaning upon it, is a retreat on its part upon the images that have arisen within it — the very counterpart of retreat upon the images of idols. For this reason the idolatry of the worshippers of"

  2. "Whoever's heart does not keep its retreat upon God alone keeps it upon images of every kind, as the leader of the upright said to his people: "What are these images to which you are so devoted?" So he and his people divided between them the reality of devoted retreat: his people's portion was retreat upon images, and his portion was retreat upon the Majestic Lord. Al-tamathil is the plural of timthal, meaning fashioned forms."

  3. "idols lay in their devoting their hearts, their aspirations and their wills to their images. So when there are in the heart images that have taken possession of it and enslaved it, so that it keeps its retreat upon them, that is the counterpart of the idolaters' retreat upon their idols. For this reason the Prophet called such a man their slave, and prayed against him with wretchedness and downfall, saying: "Wretched is the slave of the dinar, wretched the slave of the dirham; wretched is he and cast down, and if he is pricked by a thorn, may it not" be plucked out."

Cover of Volume One
Volume One
Ibn al-Qayyim · Madārij al-Sālikīn

14th century · Damascus, Syria
Madārij al-Sālikīn — the classical map of the spiritual journey — and a vast body of work on the soul, love, the traps of the ego, and the nature of the heart.
More on Ibn al-Qayyim → · Provenance →

  1. "The Prophet, peace and blessings be upon him, said to his companions when they were shown the Night of Decree in the last ten nights: "I see your dreams have agreed on the last ten nights, so whoever is seeking it, let him seek it in the last ten nights of رَمَضَان." Dreams are like visions; some are merciful, some are psychological, and some are from شَيْطَان."

  2. "The Prophet مُحَمَّد, peace be upon him, would seclude himself with a mat in the mosque during his retreat, being alone with his Lord, the Almighty, and would not engage in teaching or reminding the companions during that time. Therefore, it is well-known in the school of أَحْمَد and others that it is not recommended for the one in retreat to teach the القُرْآن and knowledge. Their seclusion for remembrance and worship is better for them, as evidenced by the actions of the Prophet, peace be upon him."

Cover of Volume One: From Tangier to the Lands of the East
Volume One: From Tangier to the Lands of the East
Ibn Battuta · Rihla — The Travels of Ibn Battuta

14th century · Tangier, Morocco
The Riḥlah — a 30-year, 75,000-mile journey across three continents, and the most important travel account of the pre-modern world.
More on Ibn Battuta → · Provenance →

  1. "Zaydi scholars and elders came to visit Sheikh Ahmad ibn al-Ajil, the Sheikh received them outside his retreat, and his companions greeted them while he remained in his place. They discussed the matter of Qadar, divine predestination, asserting that there is no predestination and that the responsible being creates his deeds. Sheikh Ahmad told them that if their claims were true, they should rise from their seats, but they could not. The Sheikh left them in their state, entered his retreat, and they felt the intense heat and the sun's glare. In their distress, the Sheikh's companions went to him, saying that these people had repented and abandoned their"

  2. "built, one for men and the other for women. The sick seek healing from this bath and come to it from the farthest parts of the land, and there is a retreat for visitors who stay and are fed for three days. This retreat was built by one of the Turkmen kings. We lodged in this city at the lodge of Fatah Aki Shams al-Din, one of the dignitaries, and we coincided with the day of Ashura at his place, where he prepared much food and invited the army leaders and townsfolk at night."

Cover of Volume Two: From India to the Lands of the West
Volume Two: From India to the Lands of the West
Ibn Battuta · Rihla — The Travels of Ibn Battuta

14th century · Tangier, Morocco
The Riḥlah — a 30-year, 75,000-mile journey across three continents, and the most important travel account of the pre-modern world.
More on Ibn Battuta → · Provenance →

  1. "and urging for battle. However, our Lord, may Allah support him, advanced against his enemy alone, with his noble self, after knowing of the people's retreat and realizing that none remained with him to fight. At that point, terror fell into the hearts of the enemies, and they fled before him. It was one of the wonders, the retreat of nations before a single man. This is indeed the grace of Allah which he grants to whom he wills, and the outcome belongs to the pious. It is nothing but the fruit of what the Most High grants when relying on and delegating matters to Allah. Regarding his engagement with knowledge, here he is."

Ask a follow-up

Want a different angle?

Type your question below — the answer is built from the same sources, and cited.

Grounded in the Qurʾān, authentic Sunnah, and the four madhāhib. Sourced answers. Never a fatwā — for personal matters, ask a qualified imam. How these answers are made →

Related questions

Keep exploring.

Hear these in full

Books these passages are from.

Open in App Store