The main conditions are that the person is Muslim, sane and able to discern, free from janabah, and free from menstruation and postnatal bleeding, and that he makes the intention. It takes place in a mosque, as Allah says: "Do not have relations with them while you are in i'tikaf in the mosques" (Quran 2:187).
Scholars differ on a few points:
- Which mosque: The Hanbali school says it must be a mosque in which the congregational prayers are held. The Hanafi school says the same for a man. The Maliki and Shafi'i schools allow any mosque, and they prefer one in which the Friday prayer is held, so that the person does not need to leave for it.
- Fasting: The Maliki school requires fasting for i'tikaf, and the Hanafi school requires it for a vowed i'tikaf. The Shafi'i and Hanbali schools do not require it. Anyone doing it in Ramadan is fasting anyway.
- Minimum time: The Maliki school says a day and a night at least. The Shafi'i and Hanbali schools say that a short period is enough, as long as he stays in the mosque with the intention. Umar, may Allah be pleased with him, was told by the Prophet ﷺ to fulfil his vow to stay one night in the Sacred Mosque (Sahih al-Bukhari 2032), which shows that a short i'tikaf is valid.
The majority of scholars say that the person who wants to complete the last ten nights should enter before sunset on the 20th of Ramadan, so that he has the whole of the last ten nights, and should leave after sunset on the last day of Ramadan. Another view is based on the report that the Prophet ﷺ prayed Fajr and then entered his place of i'tikaf (Sahih al-Bukhari 2041), and it says that he enters after Fajr on the morning of the 21st.