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 7 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 7 books by Imam al-Ghazali 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 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. "Yet, God sent a fierce wind that destroyed his ships, causing him to retreat from his siege and make peace with its king."

  2. "outside his retreat, and his companions greeted them while he remained in his place. They discussed"

  3. "to the intense heat elsewhere, as the mountain was cool and it was his habit to retreat there in"

  4. "Upon entering the city, we sought the retreat of one of the Fityanaki, a charitable brotherhood."

Ask a follow-up

Want a different angle?

Type your question below — JM Scholar will ground its answer in the same sources.

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 JM Scholar works →

Related questions

Keep exploring.

Hear these in full

Books these passages are from.

Open in App Store