This is a complete guide to praying in congregation in Masjid al-Haram for followers of the Shafi‘i school: qunut in Fajr, sujud al-tilawah, the basmalah, how many rak‘ahs a traveller prays behind the imam, and the etiquette of the rows, based on the Federal Territory Mufti Office (Malaysia) and the books of the Shafi‘i school. May this guide help you, in sha Allah.
Editorial review: 16 October 2026 · English edition: 4 December 2026 · Expert fiqh review: in progress · Main references: the Federal Territory Mufti Office (Malaysia), Tuhfat al-Muhtaj (Ibn Hajar al-Haytami), Fath al-Mu‘in and Sahih al-Bukhari.
Summary
Follow the imam in every movement. The imams of Masjid al-Haram and Masjid an-Nabawi usually follow the Hanbali school, so a Shafi‘i follower will meet three differences: the imam does not recite qunut in Fajr (your prayer is still valid), the imam sometimes makes sujud al-tilawah in the middle of the recitation (you must follow), and the imam does not recite the basmalah aloud (you still recite al-Fatihah yourself).
If you are a traveller, pray the full four rak‘ahs with the imam. Praying in your hotel room following the imam’s voice is not valid as a congregational prayer. Find your situation in the box below. Travellers praying behind a resident imam are also explained in the guide to jama‘ and qasr of Zuhr and Asr.
Find your situation
Congregational Prayer in Masjid al-Haram: What Is Different
This guide applies in Masjid al-Haram and Masjid an-Nabawi. The situations are arranged in the order of the prayer: before the takbir, during the prayer, after the salam, then the number of rak‘ahs for travellers. Tap the situation you are facing.
If this happens
What should I do?
qunut, hotel, sujud, jama‘
Before the prayer
During the prayer
After the salam
Travellers: how many rak‘ahs?
All the answers above follow the Shafi‘i school. The basic principle: if in doubt during the prayer, follow the imam.
Comparing the schools
Qunut in Fajr According to the Four Schools
The imams of Masjid al-Haram and Masjid an-Nabawi do not recite qunut in Fajr because they follow a school that does not consider it a regular sunnah. This difference is a recognised difference of opinion, not a mistake by the imam.
| School | Qunut in Fajr |
|---|---|
| Shafi‘i | Sunnah ab‘ad, after the bowing of the second rak‘ah. If it is left, sujud al-sahw is sunnah. |
| Maliki | Recommended, recited quietly before the bowing. |
| Hanafi | Not in Fajr. Qunut is only in the witr prayer. |
| Hanbali | Not recited, except qunut al-nazilah when the Muslim ummah is struck by calamity. |
A Shafi‘i follower does not have to copy the imam’s practice in this sunnah matter, and does not need to repeat the prayer. The full wording of the qunut dua is in the guide to the qunut dua.
Etiquette
Etiquette of the Rows and Walkways in Masjid al-Haram
سَوُّوا صُفُوفَكُمْ، فَإِنَّ تَسْوِيَةَ الصُّفُوفِ مِنْ إِقَامَةِ الصَّلَاةِ
“Straighten your rows, for straightening the rows is part of establishing the prayer.”
Sahih al-Bukhari, no. 723
- Come early. The rows fill up long before the adhan, especially for Maghrib, Isha and the Friday prayer.
- Fill the front rows first and stand shoulder to shoulder with those beside you.
- Follow the instructions of the mosque staff. Do not pray in walkways kept clear for pilgrims, on escalators or at emergency exits.
- Do not pass in front of someone who is praying if there is another way.
- Women: use the marked women’s prayer areas, and come early because they fill up quickly.
Q&A
Frequently Asked Questions
Is Fajr valid behind an imam of Masjid al-Haram who does not recite qunut?
Yes. In the Shafi‘i school, qunut in Fajr is a sunnah ab‘ad, not a pillar. The follower may simply follow the imam, or recite a short qunut himself if he can still prostrate with the imam. After the imam gives salam, it is sunnah to make sujud al-sahw before giving salam.
Do I need to make sujud al-sahw if the imam does not recite qunut?
It is sunnah, not obligatory. Make two prostrations after the imam gives salam, then give your own salam. If you leave it, your prayer is still valid. If a funeral prayer is announced straight away, leave the sujud al-sahw and give salam immediately so that you can make the first takbir with the imam.
Can I pray in my hotel following the imam of Masjid al-Haram over the loudspeaker?
It is not valid to follow him as an imam according to the Shafi‘i school, because the hotel room is outside the mosque and separated by walls. Pray on your own or in congregation with your roommates.
Can Umrah pilgrims combine and shorten prayers in Makkah?
Yes, if you intend to stay less than four full days, not counting the days of arrival and departure. If it is four full days or more, you are a resident and pray in full. With the mosque imam, a traveller still prays in full.
Why does the imam prostrate in the middle of the Fajr recitation on Friday?
That is sujud al-tilawah. The imam usually recites Surah al-Sajdah in Fajr on Friday, following the sunnah of the Prophet ﷺ. The follower must follow the imam into sujud, then stand up again.
Sources
References
- Sahih al-Bukhari, no. 891: reciting Surah al-Sajdah and al-Insan in Fajr on Friday. sunnah.com
- Sahih al-Bukhari, no. 723: straightening the rows. sunnah.com
- Federal Territory Mufti Office (Malaysia), Irsyad al-Fatwa Series 495: the ruling on performing the Friday prayer via live streaming (15 April 2020, in Malay): the conditions for following an imam outside the mosque. muftiwp.gov.my
- Federal Territory Mufti Office (Malaysia), Al-Kafi #872: a follower who forgets to recite al-Fatihah in congregation (31 October 2018, in Malay). muftiwp.gov.my
- Federal Territory Mufti Office (Malaysia), Al-Kafi #255: The Meaning of Musafir, Muqim and Mastautin for Jamak and Qasar (22 April 2016). muftiwp.gov.my
- Mustafa Sumait, Mukhtasar Tuhfat al-Muhtaj, vol. 1: the condition for a substitute for qunut, dua and praise, quoting al-Nihayah (p. 189, footnote) shamela.ws, qunut when the imam leaves it (p. 233) shamela.ws, the intention of residence for four days (p. 304) shamela.ws, and a traveller following an imam who prays in full (p. 309) shamela.ws.
- Amjad Rasheed, Imam’s Omission of the Du‘a of Qunut (Qibla): the follower’s qunut, the short wording and sujud al-sahw. islamqa.org
- NU Online, Is the prayer of a follower who does not follow the imam’s sujud al-tilawah invalid? (in Indonesian), quoting Fath al-Mu‘in. nu.or.id
- NU Online, The ruling on praying in a hotel in congregation with the imam of Masjid al-Haram (in Indonesian). nu.or.id
- NU Online, Differences among the jurists on qunut in Fajr (in Indonesian). nu.or.id
- NU Online, The ruling on praying in mixed rows of men and women (in Indonesian), quoting al-Mawsu‘ah al-Fiqhiyyah al-Kuwaitiyyah 6/21. nu.or.id
- Al-Durar al-Saniyyah, al-Mawsu‘ah al-Fiqhiyyah: a follower in front of the imam around the Kaaba, quoting al-Majmu‘ 4/299. dorar.net
- Dar al-Ifta’ al-Misriyyah, Hukm al-Jahr bi al-Basmalah fi al-Salah (in Arabic). dar-alifta.org


