
This is a complete guide to tahiyyat al-masjid (also written tahiyatul masjid), the two-rak‘ah prayer that greets the mosque, from the dua for entering the mosque and the intention to how to pray it step by step.
Every recitation comes with the Arabic text, transliteration, meaning and audio. At the end of the guide are answers to situations that often arise at the mosque, such as entering during the adhan, during the Friday sermon or during the iqamah.
Tahiyyat al-Masjid at a Glance
Tahiyyat al-masjid is a two-rak‘ah sunnah prayer performed on entering a mosque, before sitting down. Tahiyyah means greeting, that is, honouring the mosque as the house of Allah.
- Ruling: sunnah. It is disliked (makruh) to sit in the mosque without praying it unless you have an excuse.
- Rak‘ahs: 2, with one salam.
- Time: as soon as you enter the mosque, before sitting down. It may be prayed during the prohibited times.
- Covered by another prayer: an obligatory prayer or a two-rak‘ah rawatib sunnah also counts as tahiyyat al-masjid.
Meaning and Ruling of Tahiyyat al-Masjid
What tahiyyat al-masjid is, and why it is sunnah.
Tahiyyat al-masjid means greeting the mosque. It is a two-rak‘ah sunnah prayer performed by anyone who enters a mosque, before sitting down.
Its ruling is sunnah. It is disliked for someone who enters the mosque to sit straight down without praying it, unless he has an excuse.1
Evidence for Tahiyyat al-Masjid
The Prophet ﷺ said: “When one of you enters the mosque, let him pray two rak‘ahs before he sits down.”2
In another hadith, a man entered the mosque while the Prophet ﷺ was delivering the Friday sermon. The Prophet asked whether he had prayed. When he said he had not, the Prophet said: “Stand up and pray two rak‘ahs.”3
Masjid al-Haram and the Surau
Masjid al-Haram: someone who enters intending to perform tawaf begins with the tawaf, because the tawaf is itself the greeting of the House of Allah.4
Surau: tahiyyat al-masjid is sunnah on entering a mosque. An ordinary surau (a smaller prayer hall, common in Malaysia) is not included because it is not a mosque. For a surau that is permitted to hold the Friday prayer (known in Malaysia as a surau diri Jumaat), the Fatwa Committee of the Federal Territories allows tahiyyat al-masjid to be prayed there.5
Dua for Entering the Mosque
Recited as you step into the mosque, before praying tahiyyat al-masjid.
When entering the mosque, step in with your right foot first and recite this dua:
Dua for entering the mosque
اَللّٰهُمَّ اغْفِرْ لِي ذُنُوبِي وَافْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Allāhummaghfir lī dhunūbī waftaḥ lī abwāba raḥmatik.
O Allah, forgive me my sins and open for me the gates of Your mercy.6
Etiquette of Entering and Leaving the Mosque
- Step in with the right foot when entering, and step out with the left foot when leaving.
- Send blessings on the Prophet ﷺ before reciting the dua, then say bismillah as you step in.
- When leaving, recite the same dua, but replace raḥmatik with faḍlik: Allāhummaghfir lī dhunūbī waftaḥ lī abwāba faḍlik, meaning “open for me the gates of Your bounty”.
When to Pray Tahiyyat al-Masjid and When It Is Missed
When it is prayed, when it is not needed, and when it is missed.
Tahiyyat al-masjid has no fixed time. It is prayed as soon as you enter the mosque, before sitting down. This table summarises common situations:
| Situation | Ruling on tahiyyat al-masjid |
|---|---|
| Just entered, not yet seated | The best time. Pray two rak‘ahs first, then sit down. |
| Prohibited times, such as after Fajr and after Asr | Still permitted, because this prayer has a cause, namely entering the mosque.7 |
| Sat down for a long time | Missed, and it is not made up.8 |
| Sat briefly out of forgetfulness or not knowing | You may still stand up and pray it.8 |
| Sat down deliberately, even briefly | Missed.8 |
| The iqamah has begun or the imam has started the obligatory prayer | Do not begin tahiyyat al-masjid. Join the congregation straight away, and tahiyyat al-masjid is achieved by that obligatory prayer.9,10 |
| Entering Masjid al-Haram to perform tawaf | Begin with the tawaf.4 |
If you leave and re-enter the mosque several times, tahiyyat al-masjid is sunnah each time you enter.11
Niyyah (Intention) for Tahiyyat al-Masjid
The intention is made in the heart at the opening takbir.
The intention does not have to specify tahiyyat al-masjid. If you intend a rawatib sunnah or an obligatory prayer, tahiyyat al-masjid is still achieved.10 If you want to pray tahiyyat al-masjid on its own, use this wording of the intention:
Wording of the Intention for Tahiyyat al-Masjid
أُصَلِّي سُنَّةَ تَحِيَّةِ الْمَسْجِدِ رَكْعَتَيْنِ لِلّٰهِ تَعَالَى
Uṣallī sunnata taḥiyyatil-masjidi rak‘ataini lillāhi ta‘ālā.
Meaning
“I pray two rak‘ahs of the sunnah of tahiyyat al-masjid for the sake of Allah, the Most High.”
Making the intention in English is also enough, as long as the heart holds it at the opening takbir.
How to Pray Tahiyyat al-Masjid (2 Rak‘ahs), Step by Step
Follow these 20 steps, from the opening takbir to the salam.
Rak‘ah 1 of 2
First Rak‘ah
Begin with the Intention and the Opening Takbir
Stand upright facing the qibla. Hold the intention for tahiyyat al-masjid in your heart as you say the opening takbir.
أُصَلِّي سُنَّةَ تَحِيَّةِ الْمَسْجِدِ رَكْعَتَيْنِ لِلّٰهِ تَعَالَى
Uṣallī sunnata taḥiyyatil-masjidi rak‘ataini lillāhi ta‘ālā
Meaning: “I pray two rak‘ahs of the sunnah of tahiyyat al-masjid for the sake of Allah, the Most High.” Making the intention in English is also enough.
Note on Intention
Intention is a matter of the heart, not words that must be spoken. Hold it in your heart during the opening takbir. Saying it aloud before the takbir is sunnah, to help the heart focus.12

Raise both hands with the palms facing the qibla, the fingertips level with the top of the ears, the thumbs level with the earlobes and the palms level with the shoulders. Say “Allāhu akbar” clearly while holding the intention in your heart.13
اَللَّهُ أَكْبَرُ
Allāhu akbar
Meaning
Allah is the Greatest!
After the takbir, place your right hand over your left wrist, below the chest and above the navel.14
Recite the Opening Dua (Iftitah, Sunnah)
After the opening takbir, recite the opening dua quietly. It is sunnah and is recited in the first rak‘ah only. If you leave it out, your prayer is still valid.15
اَللّٰهُ أَكْبَرُ كَبِيرًا وَالْحَمْدُ لِلّٰهِ كَثِيرًا وَسُبْحَانَ اللّٰهِ بُكْرَةً وَأَصِيلًا. وَجَّهْتُ وَجْهِيَ لِلَّذِي فَطَرَ السَّمَاوَاتِ وَالْأَرْضَ حَنِيفًا مُسْلِمًا وَمَا أَنَا مِنَ الْمُشْرِكِينَ. إِنَّ صَلَاتِي وَنُسُكِي وَمَحْيَايَ وَمَمَاتِي لِلّٰهِ رَبِّ الْعَالَمِينَ. لَا شَرِيكَ لَهُ وَبِذَٰلِكَ أُمِرْتُ وَأَنَا مِنَ الْمُسْلِمِينَ.
Allāhu akbaru kabīrā, wal-ḥamdu lillāhi kathīrā, wa subḥānallāhi bukrataw wa aṣīlā. Wajjahtu wajhiya lilladhī faṭaras-samāwāti wal-arḍa ḥanīfam muslimaw wa mā ana minal-mushrikīn. Inna ṣalātī wa nusukī wa maḥyāya wa mamātī lillāhi rabbil-‘ālamīn. Lā sharīka lahū wa bidhālika umirtu wa ana minal-muslimīn.
Meaning
Allah is the Greatest, truly great. Much praise be to Allah. Glory be to Allah, morning and evening. I have turned my face to the One who created the heavens and the earth, inclining to the truth and submitting, and I am not one of those who associate partners with Allah. Indeed, my prayer, my worship, my life and my death are for Allah, Lord of the worlds. He has no partner. This is what I have been commanded, and I am one of those who submit to Him.
Recite Surah al-Fatihah
Before al-Fatihah, recite the ta‘awwuz quietly: A‘ūdhu billāhi minash-shaiṭānir-rajīm, meaning “I seek refuge in Allah from Satan, the accursed.” It is sunnah in every rak‘ah.16
Al-Fatihah is a pillar (rukn) of the prayer and must be recited in every rak‘ah. Recite it carefully and pronounce every letter clearly. The prayer is not valid without it.17
بِسۡمِ ٱللَّهِ ٱلرَّحۡمَٰنِ ٱلرَّحِيمِ ١ ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِينَ ٢ ٱلرَّحۡمَٰنِ ٱلرَّحِيمِ ٣ مَٰلِكِ يَوۡمِ ٱلدِّينِ ٤ إِيَّاكَ نَعۡبُدُ وَإِيَّاكَ نَسۡتَعِينُ ٥ ٱهۡدِنَا ٱلصِّرَٰطَ ٱلۡمُسۡتَقِيمَ ٦ صِرَٰطَ ٱلَّذِينَ أَنۡعَمۡتَ عَلَيۡهِمۡ غَيۡرِ ٱلۡمَغۡضُوبِ عَلَيۡهِمۡ وَلَا ٱلضَّآلِّينَ ٧
Bismillāhir-raḥmānir-raḥīm. Al-ḥamdu lillāhi rabbil-‘ālamīn. Ar-raḥmānir-raḥīm. Māliki yaumid-dīn. Iyyāka na‘budu wa iyyāka nasta‘īn. Ihdinaṣ-ṣirāṭal-mustaqīm. Ṣirāṭal-ladhīna an‘amta ‘alaihim ghairil-maghḍūbi ‘alaihim wa laḍ-ḍāllīn
Meaning
In the name of Allah, the Most Gracious, the Most Merciful. All praise is for Allah, Lord of the worlds, the Most Gracious, the Most Merciful, Master of the Day of Judgement. You alone we worship, and You alone we ask for help. Guide us to the straight path, the path of those You have blessed, not of those who have earned Your anger, nor of those who have gone astray.
After al-Fatihah, say “Āmīn”. It is sunnah.18
Recite Surah al-Kafirun
After al-Fatihah, it is sunnah to recite a surah or a few verses of the Quran. This guide uses Surah al-Kafirun in the first rak‘ah and Surah al-Ikhlas in the second, but you may recite any surah you know by heart.
Surah Al-Kafirun
قُلۡ يَٰٓأَيُّهَا ٱلۡكَٰفِرُونَ ١ لَآ أَعۡبُدُ مَا تَعۡبُدُونَ ٢ وَلَآ أَنتُمۡ عَٰبِدُونَ مَآ أَعۡبُدُ ٣ وَلَآ أَنَا۠ عَابِدٞ مَّا عَبَدتُّمۡ ٤ وَلَآ أَنتُمۡ عَٰبِدُونَ مَآ أَعۡبُدُ ٥ لَكُمۡ دِينُكُمۡ وَلِيَ دِينِ ٦
Qul yā ayyuhal-kāfirūn. Lā a‘budu mā ta‘budūn. Wa lā antum ‘ābidūna mā a‘bud. Wa lā ana ‘ābidum mā ‘abattum. Wa lā antum ‘ābidūna mā a‘bud. Lakum dīnukum wa liya dīn
Meaning
Say, “O disbelievers, I do not worship what you worship. Nor do you worship what I worship. Nor will I worship what you worship. Nor will you worship what I worship. For you is your religion, and for me is my religion.”
After the Surah, Bow for Ruku‘

Raise both hands as you did for the opening takbir, and say “Allāhu akbar” as you bow for ruku‘. Place your palms on your knees with the fingers spread. Keep your back and neck level, and look at the place of prostration.19
In ruku‘, recite:
سُبْحَانَ رَبِّيَ الْعَظِيمِ وَبِحَمْدِهِ
Subḥāna rabbiyal-‘aẓīmi wa biḥamdih (3x)
Meaning
“Glory be to my Lord, the Most Great, and praise be to Him.”
Tuma’ninah: Do Not Rush
In ruku‘, i‘tidal, sujud and the sitting between the two prostrations, let your body settle and stay still for a moment before moving to the next position. This is called tuma’ninah, and it is part of the pillars of the prayer.20
Rise for I‘tidal

Raise your head from ruku‘ while raising both hands as you did for the opening takbir.21 As you rise, recite:
سَمِعَ اللّٰهُ لِمَنْ حَمِدَهُ
Sami‘allāhu liman ḥamidah
Meaning
“Allah hears the one who praises Him.”
Once you are standing upright with tuma’ninah, recite:
رَبَّنَا لَكَ الْحَمْدُ
Rabbanā lakal-ḥamd
“Our Lord, to You belongs all praise.”
Go Down for Sujud (Prostration)

Go down for sujud while saying “Allāhu akbar”, without raising your hands. Place your knees down first, then your palms, then your forehead and nose.22
Seven parts of the body must rest on the place of prostration: the forehead, both palms, both knees and the tips of the toes of both feet. Part of the forehead must be uncovered and touch the place of prostration, such as the prayer mat, and must not be blocked by a cap, prayer garment or headscarf. Your hips must also be higher than your head.
In sujud, recite:
سُبْحَانَ رَبِّيَ الأَعْلَى وَبِحَمْدِهِ
Subḥāna rabbiyal-a‘lā wa biḥamdih (3x)
Meaning
“Glory be to my Lord, the Most High, and praise be to Him.”
Sit Between the Two Prostrations

Raise your head from the first sujud while saying “Allāhu akbar”. Sit in iftirash: sit on your left foot with your right foot upright, and rest your hands on your thighs near your knees. Sit with tuma’ninah.23 This sitting is a pillar of the prayer and is different from the brief resting sit before you rise for the next rak‘ah.
Then recite this dua:
رَبِّ اغْفِرْ لِي وَارْحَمْنِي وَاجْبُرْنِي وَارْفَعْنِي وَارْزُقْنِي وَاهْدِنِي وَعَافِنِي وَاعْفُ عَنِّي
Rabbighfir lī warḥamnī wajburnī warfa‘nī warzuqnī wahdinī wa ‘āfinī wa‘fu ‘annī
Meaning
“My Lord, forgive me, have mercy on me, make up for my shortcomings, raise my rank, provide for me, guide me, grant me well-being and pardon me.”
Make the Second Sujud

After the dua, go down for sujud again while saying “Allāhu akbar”. Do it as in the first sujud, with the seven parts of the body touching the place of prostration, then recite the words of sujud.22
سُبْحَانَ رَبِّيَ الأَعْلَى وَبِحَمْدِهِ
Subḥāna rabbiyal-a‘lā wa biḥamdih (3x)
Meaning
“Glory be to my Lord, the Most High, and praise be to Him.”
Raise Your Head with Takbir, Then Sit Briefly
Raise your head from the second sujud as you begin to say Allāhu akbar. This is a takbir of moving between positions, not a new opening takbir.
It is sunnah to sit briefly before rising for the second rak‘ah. Stretch the takbir across this short sit until you are standing upright. This sit is not a pillar, and it has no fixed length.
First rak‘ah complete
Rak‘ah 2 of 2
Second Rak‘ah
Stand for the Second Rak‘ah
Stand upright for the second rak‘ah. The takbir you began when raising your head from sujud ends once you are standing. There is no need to raise your hands or renew your intention.
A takbir of moving (takbir al-intiqal) is the takbir said when moving between positions, such as bowing, going down for sujud and rising for the next rak‘ah.
اَللَّهُ أَكْبَرُ
Allāhu akbar
Recite Surah al-Fatihah
As in the first rak‘ah, recite the ta‘awwuz quietly, then recite al-Fatihah.
بِسۡمِ ٱللَّهِ ٱلرَّحۡمَٰنِ ٱلرَّحِيمِ ١
ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِينَ ٢ ٱلرَّحۡمَٰنِ ٱلرَّحِيمِ ٣ مَٰلِكِ يَوۡمِ ٱلدِّينِ ٤ إِيَّاكَ نَعۡبُدُ وَإِيَّاكَ نَسۡتَعِينُ ٥ ٱهۡدِنَا ٱلصِّرَٰطَ ٱلۡمُسۡتَقِيمَ ٦ صِرَٰطَ ٱلَّذِينَ أَنۡعَمۡتَ عَلَيۡهِمۡ غَيۡرِ ٱلۡمَغۡضُوبِ عَلَيۡهِمۡ وَلَا ٱلضَّآلِّينَ ٧
Bismillāhir-raḥmānir-raḥīm. Al-ḥamdu lillāhi rabbil-‘ālamīn. Ar-raḥmānir-raḥīm. Māliki yaumid-dīn. Iyyāka na‘budu wa iyyāka nasta‘īn. Ihdinaṣ-ṣirāṭal-mustaqīm. Ṣirāṭal-ladhīna an‘amta ‘alaihim ghairil-maghḍūbi ‘alaihim wa laḍ-ḍāllīn
The meaning is the same as in the first rak‘ah.
Then say “Āmīn” as in the first rak‘ah.
Recite Surah al-Ikhlas
After al-Fatihah, recite Surah al-Ikhlas, or another surah you know by heart.
Surah Al-Ikhlas
قُلۡ هُوَ ٱللَّهُ أَحَدٌ ١ ٱللَّهُ ٱلصَّمَدُ ٢ لَمۡ يَلِدۡ وَلَمۡ يُولَدۡ ٣ وَلَمۡ يَكُن لَّهُۥ كُفُوًا أَحَدُۢ ٤
Qul huwallāhu aḥad. Allāhuṣ-ṣamad. Lam yalid wa lam yūlad. Wa lam yakul lahū kufuwan aḥad
Meaning
Say, “He is Allah, the One. Allah, the Eternal Refuge. He neither begets nor is born, and there is none comparable to Him.”
After the Surah, Bow for Ruku‘

Raise both hands and say “Allāhu akbar” as you bow for ruku‘, as in the first rak‘ah. Keep your back level and place your palms on your knees.
As before, in ruku‘ recite:
سُبْحَانَ رَبِّيَ الْعَظِيمِ وَبِحَمْدِهِ
Subḥāna rabbiyal-‘aẓīmi wa biḥamdih (3x)
The meaning is the same as in the first rak‘ah.
Rise for I‘tidal

Raise your head from ruku‘ while raising your hands, as in the first rak‘ah. As you rise, recite:
سَمِعَ اللّٰهُ لِمَنْ حَمِدَهُ
Sami‘allāhu liman ḥamidah
The meaning is the same as in the first rak‘ah.
Once you are standing upright with tuma’ninah, recite:
رَبَّنَا لَكَ الْحَمْدُ
Rabbanā lakal-ḥamd
“Our Lord, to You belongs all praise.”
Go Down for Sujud

Go down for sujud while saying “Allāhu akbar”, as in the first rak‘ah. Make sure the seven parts of the body touch the place of prostration. In sujud, recite:
سُبْحَانَ رَبِّيَ الأَعْلَى وَبِحَمْدِهِ
Subḥāna rabbiyal-a‘lā wa biḥamdih (3x)
The meaning is the same as in the first rak‘ah.
Sit Between the Two Prostrations

Raise your head while saying the takbir and sit in iftirash, as in the first rak‘ah. Then recite the dua between the two prostrations:
رَبِّ اغْفِرْ لِي وَارْحَمْنِي وَاجْبُرْنِي وَارْفَعْنِي وَارْزُقْنِي وَاهْدِنِي وَعَافِنِي وَاعْفُ عَنِّي
Rabbighfir lī warḥamnī wajburnī warfa‘nī warzuqnī wahdinī wa ‘āfinī wa‘fu ‘annī
The meaning is the same as in the first rak‘ah.
Make the Second Sujud

Go down for the second sujud while saying “Allāhu akbar”. In sujud, recite:
سُبْحَانَ رَبِّيَ الأَعْلَى وَبِحَمْدِهِ
Subḥāna rabbiyal-a‘lā wa biḥamdih (3x)
The meaning is the same as in the first rak‘ah.
Sit for the Final Tashahhud

After the second sujud of the second rak‘ah, raise your head while saying the takbir, then sit with your left hip on the floor and your left foot brought out from under your upright right foot. This way of sitting is called tawarruk. Then recite the final tashahhud and the blessings on the Prophet ﷺ24:
التَّحِيَّاتُ الْمُبَارَكَاتُ الصَّلَوَاتُ الطَّيِّبَاتُ لِلّٰهِ. السَّلاَمُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ. السَّلاَمُ عَلَيْنَا وَعَلَى عِبَادِ اللّٰهِ الصَّالِحِينَ. أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللّٰهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا رَسُولُ اللّٰهِ. اللَّهُمَّ صَلِّ عَلَى مُحَمَّدٍ وَعَلَى آلِ مُحَمَّدٍ. كَمَا صَلَّيْتَ عَلَى إِبْرَاهِيمَ وَعَلَى آلِ إِبْرَاهِيمَ وَبَارِكْ عَلَى مُحَمَّدٍ وَعَلَى آلِ مُحَمَّدٍ. كَمَا بَارَكْتَ عَلَى إِبْرَاهِيمَ وَعَلَى آلِ إِبْرَاهِيمَ فِي الْعَالَمِينَ إِنَّكَ حَمِيدٌ مَجِيدٌ.
At-taḥiyyātul-mubārakātuṣ-ṣalawātuṭ-ṭayyibātu lillāh. As-salāmu ‘alaika ayyuhan-nabiyyu wa raḥmatullāhi wa barakātuh. As-salāmu ‘alainā wa ‘alā ‘ibādillāhiṣ-ṣāliḥīn. Ashhadu allā ilāha illallāh, wa ashhadu anna Muḥammadar-rasūlullāh. Allāhumma ṣalli ‘alā Muḥammadiw wa ‘alā āli Muḥammad, kamā ṣallaita ‘alā Ibrāhīma wa ‘alā āli Ibrāhīm, wa bārik ‘alā Muḥammadiw wa ‘alā āli Muḥammad, kamā bārakta ‘alā Ibrāhīma wa ‘alā āli Ibrāhīma fil-‘ālamīna innaka ḥamīdum majīd
Meaning
All greetings, blessings, prayers and good things belong to Allah. Peace be upon you, O Prophet, and the mercy of Allah and His blessings. Peace be upon us and upon the righteous servants of Allah. I bear witness that there is no god but Allah, and I bear witness that Muhammad is the Messenger of Allah. O Allah, send prayers upon Muhammad and the family of Muhammad, as You sent prayers upon Ibrahim and the family of Ibrahim. And bless Muhammad and the family of Muhammad, as You blessed Ibrahim and the family of Ibrahim. In all the worlds, You are truly Praiseworthy and Glorious.
The tashahhud with its explanation is in our guide to Attahiyat (Tashahhud). Before the salam, it is sunnah to make dua.25

Note on the Final Tashahhud
Sitting for the final tashahhud, reciting the tashahhud and sending blessings on the Prophet ﷺ after it are pillars of the prayer. The complete Ibrahimi salawat is sunnah.26
During the tashahhud, close the fingers of your right hand except the index finger. Raise the index finger when you say illallāh and keep it raised until the salam.27
End the Prayer with Salam
End the prayer with the salam. The first salam, to the right, is a pillar that ends the prayer. The second salam, to the left, is sunnah.28

For the first salam, turn your face to the right and say:
السَّلَامُ عَلَيْكُمْ وَرَحْمَةُ اللّٰهِ
As-salāmu ‘alaikum wa raḥmatullāh
Meaning
“Peace be upon you, and the mercy of Allah.”
… then turn your face to the left and give the second salam:
السَّلَامُ عَلَيْكُمْ وَرَحْمَةُ اللّٰهِ
As-salāmu ‘alaikum wa raḥmatullāh
The two rak‘ahs of tahiyyat al-masjid are complete. Only now do you sit down.
Optional Practice: Intention for I‘tikaf After the Prayer
This section is sunnah, not obligatory. Your tahiyyat al-masjid is valid without it.
After the prayer, while waiting for the prayer time or a class, you may make the intention for i‘tikaf, that is, staying in the mosque with the intention of worshipping Allah. I‘tikaf counts once you stay in the mosque for a while with that intention, as long as you are not merely passing through.29
- Hold the intention in your heart while you are in the mosque. The wording below may be said to help the heart.
- Fill your i‘tikaf with dhikr, reading the Quran, making dua or listening to a class.
Intention for i‘tikaf
نَوَيْتُ الْاِعْتِكَافَ فِي هٰذَا الْمَسْجِدِ سُنَّةً لِلّٰهِ تَعَالَى
Nawaitul-i‘tikāfa fī hādhal-masjidi sunnatan lillāhi ta‘ālā.
I intend i‘tikaf in this mosque, as a sunnah, for the sake of Allah, the Most High.
Quick Reference: What to Recite in Each Position
| Position | Recitation |
|---|---|
| Opening takbir | Allāhu akbar, with the intention in the heart |
| Opening dua (sunnah) | Allāhu akbar kabīrā… |
| Ta‘awwuz (sunnah, every rak‘ah) | A‘ūdhu billāhi minash-shaiṭānir-rajīm |
| Standing | Al-Fatihah (obligatory), then a surah (sunnah) |
| Ruku‘ | Subḥāna rabbiyal-‘aẓīmi wa biḥamdih (3x) |
| I‘tidal | Sami‘allāhu liman ḥamidah. Rabbanā lakal-ḥamd |
| Sujud | Subḥāna rabbiyal-a‘lā wa biḥamdih (3x) |
| Between the two prostrations | Rabbighfir lī warḥamnī wajburnī… |
| Final tashahhud | At-taḥiyyātu… and blessings on the Prophet ﷺ |
| Salam | As-salāmu ‘alaikum wa raḥmatullāh, to the right and to the left |
This table summarises the 20 steps above. Perform every movement calmly and keep tuma’ninah.
Tahiyyat al-Masjid FAQ
Short answers for situations that often come up at the mosque.
Yes. Tahiyyat al-masjid has a cause, namely entering the mosque, and a prayer with a cause is not included in the prohibition on the disliked times.7
Answer the adhan first, as that is better. After the adhan, if there is enough time, pray tahiyyat al-masjid and then the rawatib sunnah. If time is short, one two-rak‘ah sunnah prayer is enough for both.30,10
Yes, and it is recommended. Do not sit down first. Pray two short rak‘ahs, then sit and listen to the sermon.31,3
If you sat for a long time, tahiyyat al-masjid is missed and does not need to be made up. If you sat briefly because you forgot or did not know, you may still stand up and pray it. If you sat down deliberately, it is missed even if you sat only briefly.8
Complete your prayer if you do not fear missing the congregation, then join it. If you fear missing the congregation entirely, meaning the imam would give the salam before you could join, break off the voluntary prayer and join the congregation. You do not have to break it off just because the iqamah has been called.32
No. Do not begin tahiyyat al-masjid once the iqamah has begun or the imam has started the obligatory prayer. Join the congregation straight away, and tahiyyat al-masjid is achieved by that obligatory prayer.9,10
Yes. Tahiyyat al-masjid is achieved by any two-rak‘ah prayer, whether an obligatory prayer or a rawatib sunnah. You may also intend both together, and both are achieved.10
If you cannot pray, for example because you do not have wudu, it is sunnah to recite this dhikr four times: Subḥānallāh, wal-ḥamdu lillāh, wa lā ilāha illallāh, wallāhu akbar, wa lā ḥaula wa lā quwwata illā billāhil-‘aliyyil-‘aẓīm, meaning “Glory be to Allah, all praise is for Allah, there is no god but Allah, Allah is the Greatest, and there is no power and no strength except through Allah, the Most High, the Most Great.”33
Tahiyyat al-masjid is sunnah on entering a mosque. An ordinary surau is not included because it is not a mosque. For a surau that is permitted to hold the Friday prayer (surau diri Jumaat), the Fatwa Committee of the Federal Territories allows tahiyyat al-masjid to be prayed there. In a field, a hall or a covered walkway, there is no tahiyyat al-masjid.5
Yes. According to the stronger view, tahiyyat al-masjid is sunnah each time you enter, even if the two entries are close together.11
Closing
Tahiyyat al-masjid is only two short rak‘ahs, but it teaches a great point of etiquette: we do not enter the house of Allah as we would enter an ordinary place.
Make it a habit every time you step into a mosque. If time is short, a rawatib sunnah or the obligatory prayer is enough. If you cannot pray at all, recite the dhikr mentioned in the FAQ above.
May this be of benefit.
Footnotes & References
- It is sunnah for everyone who enters a mosque to pray two rak‘ahs of tahiyyat al-masjid, and it is disliked for him to sit without praying it unless he has an excuse, whether at a prohibited time or not. [al-Nawawi, al-Majmu‘ Sharh al-Muhadhdhab, 4/52: «ويكره أن يجلس من غير تحية»] ↩︎
- Hadith of Abu Qatadah. [Sahih al-Bukhari, no. 444. Sahih Muslim, no. 714] Imam al-Nawawi states that this hadith is authentic, narrated by al-Bukhari and Muslim. [al-Nawawi, al-Majmu‘, 4/51] ↩︎
- Hadith of Jabir ibn Abdullah about the man who entered while the Prophet ﷺ was delivering the Friday sermon. [Sahih al-Bukhari, no. 930. Sahih Muslim, no. 875] ↩︎
- Tahiyyat al-masjid is disliked for someone entering Masjid al-Haram, because he begins with tawaf. [al-Nawawi, al-Majmu‘, 4/53] If he intends to perform tawaf, the tawaf is itself the greeting of the House of Allah, and the two rak‘ahs after tawaf also count as tahiyyat al-masjid. [I‘anat al-Talibin, Chapter on Voluntary Prayer] ↩︎
- According to Ibn Hajar al-Haytami, tahiyyat al-masjid is sunnah for a place that is entirely a mosque. According to al-Ramli, it is also sunnah for a building only part of which is endowed (waqf) as a mosque. [I‘anat al-Talibin, Chapter on Voluntary Prayer] The Fatwa Committee of the Federal Territories permits tahiyyat al-masjid in a surau where the Friday prayer is held (surau diri Jumaat). [Irsyad al-Fatwa Series 103, Office of the Mufti of the Federal Territories, 25 February 2016] ↩︎
- Imam al-Nawawi mentions this dua for entering the mosque, together with saying bismillah, sending blessings on the Prophet ﷺ and stepping in with the right foot. When leaving, the left foot goes first and «أبواب فضلك» is said in place of «أبواب رحمتك». [al-Nawawi, al-Adhkar, Chapter on What to Say When Entering and Leaving the Mosque] The original dua «اللهم افتح لي أبواب رحمتك» is narrated by Muslim. [Sahih Muslim, no. 713] ↩︎
- A prayer that has a cause, such as tahiyyat al-masjid, is not disliked during the prohibited times. [al-Nawawi, Minhaj al-Talibin, Book of Prayer: «إلا لسبب كفائته وكسوف وتحية وسجدة شكر»] ↩︎
- Tahiyyat al-masjid is missed by a long sitting, and also by a short one unless it was out of forgetfulness or not knowing. [Zayn al-Din al-Malibari, Fath al-Mu‘in, with I‘anat al-Talibin, Chapter on Voluntary Prayer: «وتفوت التحية بالجلوس الطويل، وكذا القصير إن لم يسه أو يجهل»] A missed tahiyyat al-masjid is not made up. For someone who sat out of forgetfulness or not knowing and has not sat long, Imam al-Nawawi’s preferred view is that he may still pray it, based on the hadith of the man who was told to stand and pray two rak‘ahs during the sermon. [al-Nawawi, al-Majmu‘, 4/53] ↩︎
- It is disliked to begin tahiyyat al-masjid once the imam has begun the obligatory prayer or the muezzin has begun the iqamah. [al-Nawawi, al-Majmu‘, 4/53] The evidence is the hadith narrated by Muslim from Abu Hurairah: when the iqamah for prayer has been called, there is no prayer except the obligatory one. [al-Nawawi, al-Majmu‘, 4/51] ↩︎
- Tahiyyat al-masjid does not need a specific intention. It is achieved by an obligatory prayer or another voluntary prayer of two rak‘ahs, and if it is intended together with that prayer, both are achieved without disagreement. It is not achieved by one rak‘ah, the funeral prayer, the prostration of recitation or the prostration of gratitude. [al-Nawawi, Minhaj al-Talibin, Chapter on Voluntary Prayer: «وتحية المسجد ركعتان وتحصل بفرض أو نفل آخر»] [al-Nawawi, al-Majmu‘, 4/52] ↩︎
- Tahiyyat al-masjid is sunnah for whoever enters a mosque, even if he enters repeatedly. [Zayn al-Din al-Malibari, Fath al-Mu‘in, with I‘anat al-Talibin, Chapter on Voluntary Prayer: «لداخل مسجد وإن تكرر دخوله»] Imam al-Nawawi considers this the stronger view. [al-Nawawi, al-Majmu‘, 4/52] ↩︎
- The intention is in the heart and must accompany the opening takbir, while saying it aloud before the takbir is recommended so the tongue helps the heart. [Minhaj al-Talibin, Chapter on the Description of Prayer] [Al-Kafi #945] ↩︎
- It is sunnah to raise the hands at the takbir, with the fingertips level with the top of the ears, the thumbs level with the earlobes and the palms level with the shoulders. [Tuhfat al-Muhtaj 2/18] [Sahih al-Bukhari 735] ↩︎
- It is sunnah to place the hands below the chest, with the right hand holding the left wrist. [Minhaj al-Talibin, Chapter on the Description of Prayer] [Sahih Muslim 401] ↩︎
- The opening dua is sunnah and is recited quietly after the opening takbir. The wording common in Malaysia combines two authentic narrations. [Minhaj al-Talibin, Chapter on the Description of Prayer] [Sahih Muslim 601] [Sahih Muslim 771] ↩︎
- After the opening dua, it is sunnah to recite the ta‘awwuz quietly before al-Fatihah in every rak‘ah, and it is more emphasised in the first rak‘ah. [Minhaj al-Talibin, Chapter on the Description of Prayer: «ثم التعوذ ويسرهما ويتعوذ في كل ركعة على المذهب والأولى آكد»] ↩︎
- In the Shafi‘i school, al-Fatihah must be recited in every rak‘ah by the imam, the follower and the person praying alone. [al-Majmu‘ 3/364] ↩︎
- After al-Fatihah, it is sunnah to say “Āmīn” with the letter mim unstressed. [Minhaj al-Talibin, Chapter on the Description of Prayer: «ويسن عقب الفاتحة آمين خفيفة الميم»] ↩︎
- It is sunnah to say the takbir as you begin to bow for ruku‘ and to raise the hands as at the opening takbir. The complete ruku‘ is to keep the back and neck level and hold the knees with the fingers spread. [Minhaj al-Talibin, Chapter on the Description of Prayer: «وأكمله تسوية ظهره وعنقه ونصب ساقيه وأخذ ركبتيه بيديه وتفرقة أصابعه للقبلة ويكبر في ابتداء هويه ويرفع يديه كإحرامه»] ↩︎
- The hadith of Abu Hurairah RA about the man who prayed hastily: the Prophet ﷺ told him to repeat his prayer and taught him to bow, stand, prostrate and sit calmly. [Sahih al-Bukhari 757] [Sahih Muslim 397] The measure of tuma’ninah is that the body settles for a moment so that the movement down is separate from the movement up. [Tuhfat al-Muhtaj 2/59] ↩︎
- It is sunnah to raise the hands as you begin to lift your head from ruku‘ while saying “Sami‘allāhu liman ḥamidah”. [Minhaj al-Talibin, Chapter on the Description of Prayer: «ويسن رفع يديه مع ابتداء رفع رأسه قائلا سمع الله لمن حمده»] ↩︎
- The minimum of sujud is for part of the forehead to touch the place of prostration directly. Placing both hands, both knees and both feet is also obligatory according to the view preferred by al-Nawawi, and the hips must be higher than the head. It is sunnah to say the takbir while going down without raising the hands, and to place the knees, then the hands, then the forehead and nose. The second sujud is made like the first. [Minhaj al-Talibin, Chapter on the Description of Prayer: «وأقله مباشرة بعض جبهته مصلاه… قلت: الأظهر وجوبه… وأن ترتفع أسافله على أعاليه في الأصح وأكمله يكبر لهويه بلا رفع ويضع ركبتيه ثم يديه ثم جبهته وأنفه», «ثم يسجد الثانية كالأولى»] ↩︎
- The complete sitting between the two prostrations is to say the takbir while rising, sit in iftirash and place the hands on the thighs near the knees. [Minhaj al-Talibin, Chapter on the Description of Prayer: «وأكمله يكبر ويجلس مفترشا واضعا يديه قريبا من ركبتيه»] ↩︎
- The hadith of Abu Humayd al-Sa‘idi RA: in the last rak‘ah, the Prophet ﷺ put his left foot forward, kept his right foot upright and sat on his seat. [Sahih al-Bukhari 828] [Minhaj al-Talibin, Chapter on the Description of Prayer] ↩︎
- Imam al-Nawawi states that after the final tashahhud and the salawat, it is sunnah to make dua, and a dua narrated from the Prophet ﷺ (ma’thur) is better. [Minhaj al-Talibin, Chapter on the Description of Prayer] ↩︎
- Sending blessings on the Prophet ﷺ in the final tashahhud is a pillar, and the minimum is “Allāhumma ṣalli ‘alā Muḥammad”. Adding blessings on his family and the Ibrahimi salawat is more complete. [Minhaj al-Talibin, Chapter on the Description of Prayer] [Tuhfat al-Muhtaj 2/86] ↩︎
- The right index finger is raised when saying “illallāh”, is not moved, and stays raised until the end of the tashahhud. [Tuhfat al-Muhtaj 2/80] [Sahih Muslim 580] ↩︎
- The minimum salam is “As-salāmu ‘alaikum”. The most complete is “As-salāmu ‘alaikum wa raḥmatullāh” twice, to the right and then to the left. [Minhaj al-Talibin, Chapter on the Description of Prayer] ↩︎
- I‘tikaf is valid only in a mosque, and according to the soundest view it requires staying for a while, so merely passing through is not enough. [al-Nawawi, Minhaj al-Talibin, Book of I‘tikaf: «وإنما يصح الاعتكاف في المسجد» and «والأصح أنه يشترط في الاعتكاف لبث قدر يسمى عكوفا»] ↩︎
- The Office of the Mufti of the Federal Territories explains that someone who enters during the adhan should preferably answer the adhan first. If there is enough time, he prays tahiyyat al-masjid and then the rawatib sunnah. If time is short, one prayer is enough for both. [Al-Kafi li al-Fatawi #980] ↩︎
- Someone who enters while the imam is delivering the sermon does not sit until he has prayed tahiyyat al-masjid, and he keeps it short. [al-Nawawi, al-Majmu‘, 4/53: «فلا يجلس حتى يصلي التحية ويخففها»] ↩︎
- If someone is praying a voluntary prayer and the congregational prayer begins, he completes his voluntary prayer if he does not fear missing the congregation, then joins it. If he fears missing it, he breaks off the voluntary prayer. Missing the congregation here means missing it entirely, that is, the imam has given the salam. [al-Nawawi, al-Majmu‘, 4/208: «فإن لم يخش فوات الجماعة أتم النافلة ثم دخل في الجماعة وإن خشي فواتها قطع النافلة»] ↩︎
- It is sunnah for someone who cannot pray tahiyyat al-masjid, including because he is not in a state of ritual purity, to recite this dhikr four times. [Zayn al-Din al-Malibari, Fath al-Mu‘in, with I‘anat al-Talibin, Chapter on Voluntary Prayer: «سبحان الله والحمد لله ولا إله إلا الله والله أكبر ولا حول ولا قوة إلا بالله العلي العظيم، أربعا»] ↩︎
Further Reading
- al-Nawawi, Minhaj al-Talibin wa ‘Umdat al-Muftin.
- al-Nawawi, al-Majmu‘ Sharh al-Muhadhdhab, volumes 3 and 4.
- al-Nawawi, al-Adhkar.
- Ibn Hajar al-Haytami, Tuhfat al-Muhtaj bi Sharh al-Minhaj, volume 2.
- Zayn al-Din al-Malibari, Fath al-Mu‘in, with al-Bakri, I‘anat al-Talibin, volume 1.
- al-Bukhari, Sahih al-Bukhari. Muslim, Sahih Muslim.
- Dato’ Ismail Kamus, Indahnya Hidup Bersyariat.
- Rohidzir Rais, Fuad Ismail and Mohd Wahid Abd Hanif, Ensiklopedia Solat.
- Dr. Nik Yusri Musa, Ensiklopedia A-Z Tentang Solat.
- Dato’ Dr. Mahmood Haji Abdul Majib and Rohidzir Rais, Bimbingan Lengkap Solat Sunat.
- Ustaz Mohd Faez Mohd Shah al-Hashimi, Solat Sunat Harian.
- Ustaz Muhadir Haji Joll, 1157 Persoalan Solat.


