How to pray Maghrib
Maghrib is prayed right after sunset and has the shortest window of the five. It is the only prayer with three rak'ahs. Two rak'ahs of sunnah are offered after the fard, and these were prayed regularly by the Prophet ﷺ. The recitation in the first two rak'ahs is aloud, the third is silent, with a short tashahhud sitting in between.
Immediately after sunset until the red twilight disappears
Aloud in rak'ahs 1 and 2, silent in rak'ah 3.
3 fard, 2 sunnah after
Starts the moment the sun's disc fully sets below the horizon and ends when the red glow on the western horizon fades into dark blue (the start of Isha). This is the shortest window of the five prayers, usually 60 to 90 minutes.
Step by step
Every section below is one position in the prayer. Read top to bottom, then repeat for each rakaʿa.
Aloud in rakaʿāt 1 and 2 (Fātiḥa + short surah). Silent in rakaʿa 3 (Fātiḥa only).
- Intention before the prayerNiyyah
After performing wuḍū' (ablution), stand straight on your feet, turn to the qiblah, and make the following intention in your heart:
"For the sake of Allah, I intend to pray the farḍ of Maghrib, the obligatory Maghrib prayer, consisting of 3 rakaʿāt."
The intention is made silently in the heart. Voicing it is not required.
- The opening takbirTakbir
Raise your hands and say:
اللّٰهُ أَكْبَر
Allāhu akbar
Allah is the Greatest
The prayer begins. After this, fold your hands.
- Dua Sana· 1st rakʿa onlyQiyām
Place your right hand over your left and say silently:
سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ، وَتَبَارَكَ ٱسْمُكَ، وَتَعَالَىٰ جَدُّكَ، وَلَا إِلَٰهَ غَيْرُكَ
Subḥānak-Allāhumma wa biḥamdik, wa tabārak-asmuk, wa taʿālā jadduk, wa lā ilāha ghayruk
Glory be to You, O Allah, and all praise be to You. Blessed is Your name, exalted is Your majesty, and there is no god worthy of worship besides You.
- Dua Isti'adhaQiyām
أَعُوذُ بِٱللَّٰهِ مِنَ ٱلشَّيْطَانِ ٱلرَّجِيم
Aʿūdhu billāhi min-ash-shayṭān-ir-rajīm
I seek refuge in Allah from Satan, the accursed.
- Surah Al-Fātiḥa· 1st rakʿaQiyām
بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيم
Bismillāh-ir-Raḥmān-ir-Raḥīm
In the name of Allah, the Most Gracious, the Most Merciful.
ٱلْحَمْدُ لِلَّٰهِ رَبِّ ٱلْعَالَمِين
Al-ḥamdu lillāhi rabbil-ʿālamīn
Praise be to Allah, Lord of all the worlds.
ٱلرَّحْمَٰنِ ٱلرَّحِيم
Ar-Raḥmān-ir-Raḥīm
The Most Gracious, the Most Merciful.
مَالِكِ يَوْمِ ٱلدِّين
Māliki yawm-id-dīn
Master of the Day of Judgment.
إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِين
Iyyāka naʿbudu wa iyyāka nastaʿīn
You alone we worship, and You alone we ask for help.
ٱهْدِنَا ٱلصِّرَاطَ ٱلْمُسْتَقِيم
Ihdinaṣ-ṣirāṭal-mustaqīm
Guide us to the straight path.
صِرَاطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ، غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّالِّين
Ṣirāṭal-laḏīna anʿamta ʿalayhim, ghayril-maghḍūbi ʿalayhim wa laḍ-ḍāllīn
The path of those You have blessed, not of those who incurred wrath, nor of those who went astray.
آمِين
Āmīn
(Said softly) Amen.
- A short surah· 1st rakʿaQiyām
Recite any short surah after Al-Fātiḥa. Picks for this rakaʿa:
قُلْ هُوَ ٱللَّهُ أَحَد
Qul huwallāhu aḥad
Say: He is Allah, the One.
ٱللَّهُ ٱلصَّمَد
Allāhuṣ-ṣamad
Allah, the Eternal, the Self-Sufficient.
لَمْ يَلِدْ وَلَمْ يُولَد
Lam yalid wa lam yūlad
He neither begets nor is born.
وَلَمْ يَكُن لَّهُۥ كُفُوًا أَحَد
Wa lam yakun lahū kufuwan aḥad
And there is none comparable to Him.
- Bowing, rukūʿRukūʿ
Say takbir, bow with a straight back, hands on knees. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْعَظِيم
Subḥāna rabbiyal-ʿaẓīm
Glory be to my Lord, the Almighty.
Repeat 3× - Standing up after rukūʿIʿtidāl
Stand up while saying the first phrase, then once standing recite the second:
سَمِعَ ٱللَّٰهُ لِمَنْ حَمِدَه
Samiʿallāhu liman ḥamidah
Allah hears those who praise Him.
رَبَّنَا وَلَكَ ٱلْحَمْد
Rabbanā wa lakal-ḥamd
Our Lord, to You alone belongs all praise.
- First prostration, sajdaSajda
Say takbir as you go down, then prostrate. Forehead, nose, both palms, both knees, and toes touch the ground. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْأَعْلَىٰ
Subḥāna rabbiyal-aʿlā
Glory be to my Lord, the Most High.
Repeat 3× - Sitting up between sajdasJalsa
Say takbir as you sit. Pause briefly with a straight back.
اللّٰهُ أَكْبَر
Allāhu akbar
Allah is the Greatest
- Second prostration, sajdaSajda
Say takbir as you go back down. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْأَعْلَىٰ
Subḥāna rabbiyal-aʿlā
Glory be to my Lord, the Most High.
Repeat 3× - Stand up for the 2nd rakʿaTakbir
Say takbir as you rise. Fold your hands and continue.
اللّٰهُ أَكْبَر
Allāhu akbar
Allah is the Greatest
- Dua Isti'adhaQiyām
أَعُوذُ بِٱللَّٰهِ مِنَ ٱلشَّيْطَانِ ٱلرَّجِيم
Aʿūdhu billāhi min-ash-shayṭān-ir-rajīm
I seek refuge in Allah from Satan, the accursed.
- Surah Al-Fātiḥa· 2nd rakʿaQiyām
بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيم
Bismillāh-ir-Raḥmān-ir-Raḥīm
In the name of Allah, the Most Gracious, the Most Merciful.
ٱلْحَمْدُ لِلَّٰهِ رَبِّ ٱلْعَالَمِين
Al-ḥamdu lillāhi rabbil-ʿālamīn
Praise be to Allah, Lord of all the worlds.
ٱلرَّحْمَٰنِ ٱلرَّحِيم
Ar-Raḥmān-ir-Raḥīm
The Most Gracious, the Most Merciful.
مَالِكِ يَوْمِ ٱلدِّين
Māliki yawm-id-dīn
Master of the Day of Judgment.
إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِين
Iyyāka naʿbudu wa iyyāka nastaʿīn
You alone we worship, and You alone we ask for help.
ٱهْدِنَا ٱلصِّرَاطَ ٱلْمُسْتَقِيم
Ihdinaṣ-ṣirāṭal-mustaqīm
Guide us to the straight path.
صِرَاطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ، غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّالِّين
Ṣirāṭal-laḏīna anʿamta ʿalayhim, ghayril-maghḍūbi ʿalayhim wa laḍ-ḍāllīn
The path of those You have blessed, not of those who incurred wrath, nor of those who went astray.
آمِين
Āmīn
(Said softly) Amen.
- A short surah· 2nd rakʿaQiyām
Recite any short surah after Al-Fātiḥa. Picks for this rakaʿa:
قُلْ هُوَ ٱللَّهُ أَحَد
Qul huwallāhu aḥad
Say: He is Allah, the One.
ٱللَّهُ ٱلصَّمَد
Allāhuṣ-ṣamad
Allah, the Eternal, the Self-Sufficient.
لَمْ يَلِدْ وَلَمْ يُولَد
Lam yalid wa lam yūlad
He neither begets nor is born.
وَلَمْ يَكُن لَّهُۥ كُفُوًا أَحَد
Wa lam yakun lahū kufuwan aḥad
And there is none comparable to Him.
- Bowing, rukūʿRukūʿ
Say takbir, bow with a straight back, hands on knees. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْعَظِيم
Subḥāna rabbiyal-ʿaẓīm
Glory be to my Lord, the Almighty.
Repeat 3× - Standing up after rukūʿIʿtidāl
Stand up while saying the first phrase, then once standing recite the second:
سَمِعَ ٱللَّٰهُ لِمَنْ حَمِدَه
Samiʿallāhu liman ḥamidah
Allah hears those who praise Him.
رَبَّنَا وَلَكَ ٱلْحَمْد
Rabbanā wa lakal-ḥamd
Our Lord, to You alone belongs all praise.
- First prostration, sajdaSajda
Say takbir as you go down, then prostrate. Forehead, nose, both palms, both knees, and toes touch the ground. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْأَعْلَىٰ
Subḥāna rabbiyal-aʿlā
Glory be to my Lord, the Most High.
Repeat 3× - Sitting up between sajdasJalsa
Say takbir as you sit. Pause briefly with a straight back.
اللّٰهُ أَكْبَر
Allāhu akbar
Allah is the Greatest
- Second prostration, sajdaSajda
Say takbir as you go back down. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْأَعْلَىٰ
Subḥāna rabbiyal-aʿlā
Glory be to my Lord, the Most High.
Repeat 3× - First tashahhud· After the 2nd rakʿaTashahhud
Sit upright. Right index finger raised at the shahādah. Recite At-Taḥiyyāt only (no durood here in 3- and 4-rakaa prayers):
ٱلتَّحِيَّاتُ لِلَّٰهِ، وَٱلصَّلَوَاتُ وَٱلطَّيِّبَات، ٱلسَّلَامُ عَلَيْكَ أَيُّهَا ٱلنَّبِيُّ وَرَحْمَةُ ٱللَّٰهِ وَبَرَكَاتُهُ، ٱلسَّلَامُ عَلَيْنَا وَعَلَىٰ عِبَادِ ٱللَّٰهِ ٱلصَّالِحِين، أَشْهَدُ أَنْ لَا إِلَٰهَ إِلَّا ٱللَّٰه، وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُه
At-taḥiyyātu lillāh, was-ṣalawātu waṭ-ṭayyibāt. As-salāmu ʿalayka ayyuhan-nabiyyu wa raḥmatullāhi wa barakātuh. As-salāmu ʿalaynā wa ʿalā ʿibādillāhiṣ-ṣāliḥīn. Ashhadu al-lā ilāha illallāh, wa ashhadu anna Muḥammadan ʿabduhū wa rasūluh.
All greetings, prayers, and pure deeds belong to Allah. Peace be upon you, O Prophet, and the mercy and blessings of Allah. Peace be upon us and upon all the righteous servants of Allah. I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and messenger.
- Stand up for the 3rd rakʿaTakbir
Say takbir as you rise. Fold your hands and continue.
اللّٰهُ أَكْبَر
Allāhu akbar
Allah is the Greatest
- Dua Isti'adhaQiyām
أَعُوذُ بِٱللَّٰهِ مِنَ ٱلشَّيْطَانِ ٱلرَّجِيم
Aʿūdhu billāhi min-ash-shayṭān-ir-rajīm
I seek refuge in Allah from Satan, the accursed.
- Surah Al-Fātiḥa· 3rd rakʿaQiyām
بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيم
Bismillāh-ir-Raḥmān-ir-Raḥīm
In the name of Allah, the Most Gracious, the Most Merciful.
ٱلْحَمْدُ لِلَّٰهِ رَبِّ ٱلْعَالَمِين
Al-ḥamdu lillāhi rabbil-ʿālamīn
Praise be to Allah, Lord of all the worlds.
ٱلرَّحْمَٰنِ ٱلرَّحِيم
Ar-Raḥmān-ir-Raḥīm
The Most Gracious, the Most Merciful.
مَالِكِ يَوْمِ ٱلدِّين
Māliki yawm-id-dīn
Master of the Day of Judgment.
إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِين
Iyyāka naʿbudu wa iyyāka nastaʿīn
You alone we worship, and You alone we ask for help.
ٱهْدِنَا ٱلصِّرَاطَ ٱلْمُسْتَقِيم
Ihdinaṣ-ṣirāṭal-mustaqīm
Guide us to the straight path.
صِرَاطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ، غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّالِّين
Ṣirāṭal-laḏīna anʿamta ʿalayhim, ghayril-maghḍūbi ʿalayhim wa laḍ-ḍāllīn
The path of those You have blessed, not of those who incurred wrath, nor of those who went astray.
آمِين
Āmīn
(Said softly) Amen.
- Bowing, rukūʿRukūʿ
Say takbir, bow with a straight back, hands on knees. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْعَظِيم
Subḥāna rabbiyal-ʿaẓīm
Glory be to my Lord, the Almighty.
Repeat 3× - Standing up after rukūʿIʿtidāl
Stand up while saying the first phrase, then once standing recite the second:
سَمِعَ ٱللَّٰهُ لِمَنْ حَمِدَه
Samiʿallāhu liman ḥamidah
Allah hears those who praise Him.
رَبَّنَا وَلَكَ ٱلْحَمْد
Rabbanā wa lakal-ḥamd
Our Lord, to You alone belongs all praise.
- First prostration, sajdaSajda
Say takbir as you go down, then prostrate. Forehead, nose, both palms, both knees, and toes touch the ground. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْأَعْلَىٰ
Subḥāna rabbiyal-aʿlā
Glory be to my Lord, the Most High.
Repeat 3× - Sitting up between sajdasJalsa
Say takbir as you sit. Pause briefly with a straight back.
اللّٰهُ أَكْبَر
Allāhu akbar
Allah is the Greatest
- Second prostration, sajdaSajda
Say takbir as you go back down. Recite (3×):
سُبْحَانَ رَبِّيَ ٱلْأَعْلَىٰ
Subḥāna rabbiyal-aʿlā
Glory be to my Lord, the Most High.
Repeat 3× - Final tashahhudTashahhud
Sit upright. Right index finger raised at the shahādah. Recite At-Taḥiyyāt:
ٱلتَّحِيَّاتُ لِلَّٰهِ، وَٱلصَّلَوَاتُ وَٱلطَّيِّبَات، ٱلسَّلَامُ عَلَيْكَ أَيُّهَا ٱلنَّبِيُّ وَرَحْمَةُ ٱللَّٰهِ وَبَرَكَاتُهُ، ٱلسَّلَامُ عَلَيْنَا وَعَلَىٰ عِبَادِ ٱللَّٰهِ ٱلصَّالِحِين، أَشْهَدُ أَنْ لَا إِلَٰهَ إِلَّا ٱللَّٰه، وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُه
At-taḥiyyātu lillāh, was-ṣalawātu waṭ-ṭayyibāt. As-salāmu ʿalayka ayyuhan-nabiyyu wa raḥmatullāhi wa barakātuh. As-salāmu ʿalaynā wa ʿalā ʿibādillāhiṣ-ṣāliḥīn. Ashhadu al-lā ilāha illallāh, wa ashhadu anna Muḥammadan ʿabduhū wa rasūluh.
All greetings, prayers, and pure deeds belong to Allah. Peace be upon you, O Prophet, and the mercy and blessings of Allah. Peace be upon us and upon all the righteous servants of Allah. I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and messenger.
- Ṣalāt al-Ibrāhīmiyyah· Durood on the Prophet ﷺTashahhud
ٱللَّهُمَّ صَلِّ عَلَىٰ مُحَمَّدٍ وَعَلَىٰ آلِ مُحَمَّد، كَمَا صَلَّيْتَ عَلَىٰ إِبْرَاهِيمَ وَعَلَىٰ آلِ إِبْرَاهِيم، إِنَّكَ حَمِيدٌ مَجِيد. ٱللَّهُمَّ بَارِكْ عَلَىٰ مُحَمَّدٍ وَعَلَىٰ آلِ مُحَمَّد، كَمَا بَارَكْتَ عَلَىٰ إِبْرَاهِيمَ وَعَلَىٰ آلِ إِبْرَاهِيم، إِنَّكَ حَمِيدٌ مَجِيد
Allāhumma ṣalli ʿalā Muḥammadin wa ʿalā āli Muḥammad, kamā ṣallayta ʿalā Ibrāhīma wa ʿalā āli Ibrāhīm, innaka ḥamīdun majīd. Allāhumma bārik ʿalā Muḥammadin wa ʿalā āli Muḥammad, kamā bārakta ʿalā Ibrāhīma wa ʿalā āli Ibrāhīm, innaka ḥamīdun majīd.
O Allah, send blessings upon Muhammad and the family of Muhammad as You sent blessings upon Ibrahim and the family of Ibrahim. You are indeed the Praiseworthy, the Glorious. O Allah, bless Muhammad and the family of Muhammad as You blessed Ibrahim and the family of Ibrahim. You are indeed the Praiseworthy, the Glorious.
- Final duaTashahhud
Make any sincere dua. A widely-recited one:
رَبَّنَا آتِنَا فِي ٱلدُّنْيَا حَسَنَة، وَفِي ٱلْآخِرَةِ حَسَنَة، وَقِنَا عَذَابَ ٱلنَّار
Rabbanā ātinā fid-dunyā ḥasanah, wa fil-ākhirati ḥasanah, wa qinā ʿadhāban-nār
Our Lord, give us good in this world and good in the Hereafter, and protect us from the punishment of the Fire.
- The closing salāmSalām
Turn your head to the right and say the salām, then to the left and say it again:
ٱلسَّلَامُ عَلَيْكُمْ وَرَحْمَةُ ٱللَّٰه
As-salāmu ʿalaykum wa raḥmatullāh
Peace be upon you, and the mercy of Allah.
The prayer is complete.
A note on variants. Recitations follow the most widely shared Sunnah wording. Some madhabs use slightly different phrasing for Dua Sana, At-Taḥiyyāt, the closing dua, or hand placement during qiyām. All authentic variants are valid, pray in the way your local imam teaches.
What makes Maghrib distinct
- 1
Three rak'ahs, the only prayer with an odd fard count among the five.
- 2
Recited aloud in the first two rak'ahs, silent in the third.
- 3
A brief tashahhud sitting after rak'ah 2, before standing for rak'ah 3.
- 4
The second surah (after al-Fatihah) is usually short, as Maghrib has a tight time window.
- 5
The 2 sunnah after are strongly recommended, usually short like al-Kafirun and al-Ikhlas.
FAQs about Maghrib
Why is Maghrib three rak'ahs?+
This is how the Prophet ﷺ prayed it. It is the only fard prayer with an odd rak'ah count. It corresponds in some interpretations to the witr of the day.
When exactly does Maghrib's window end?+
When the red twilight (shafaq ahmar) disappears on the western horizon. The majority of scholars hold this position. Hanafi scholars hold it ends when the white twilight fades, slightly later.
Are the 2 sunnah after Maghrib important?+
Very. The Prophet ﷺ said whoever prays 12 sunnah rak'ahs a day (including these 2 after Maghrib) has a house built for them in Paradise. Sahih Muslim 728.
Can I combine Maghrib with Isha?+
Yes in specific cases: while travelling, in hardship, or in continuous rain in mosque. The Prophet ﷺ combined Maghrib and Isha on the march. For daily non-travel life, pray each at its own time.
Learn the full prayer
Every daily prayer builds on the same 2-rak'ah pattern: wudu, the takbir, al-Fatihah, a surah, ruku, sujud, tashahhud, and salam. Learn the complete walkthrough once and every prayer makes sense.