Barakahبركة
All featuresSupportContactCareersSign in
Sign in
  1. Home
  2. /
  3. How to Pray
  4. /
  5. Maghrib
Obligatory · fard

How to pray Maghrib

المغربThe Sunset prayer

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.

Time

Immediately after sunset until the red twilight disappears

Recitation

Aloud in rak'ahs 1 and 2, silent in rak'ah 3.

Rak'ahs

3 fard, 2 sunnah after

About the time window

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.

Step by step3 rakaʿāt33 steps

Aloud in rakaʿāt 1 and 2 (Fātiḥa + short surah). Silent in rakaʿa 3 (Fātiḥa only).

  1. 01
    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.

  2. 02
    The opening takbirTakbir

    Raise your hands and say:

    اللّٰهُ أَكْبَر

    Allāhu akbar

    Allah is the Greatest

    The prayer begins. After this, fold your hands.

  3. 03
    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.

  4. 04
    Dua Isti'adhaQiyām

    أَعُوذُ بِٱللَّٰهِ مِنَ ٱلشَّيْطَانِ ٱلرَّجِيم

    Aʿūdhu billāhi min-ash-shayṭān-ir-rajīm

    I seek refuge in Allah from Satan, the accursed.

  5. 05
    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.

  6. 06
    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.

  7. 07
    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×
  8. 08
    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.

  9. 09
    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×
  10. 10
    Sitting up between sajdasJalsa

    Say takbir as you sit. Pause briefly with a straight back.

    اللّٰهُ أَكْبَر

    Allāhu akbar

    Allah is the Greatest

  11. 11
    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×
  12. 12
    Stand up for the 2nd rakʿaTakbir

    Say takbir as you rise. Fold your hands and continue.

    اللّٰهُ أَكْبَر

    Allāhu akbar

    Allah is the Greatest

  13. 13
    Dua Isti'adhaQiyām

    أَعُوذُ بِٱللَّٰهِ مِنَ ٱلشَّيْطَانِ ٱلرَّجِيم

    Aʿūdhu billāhi min-ash-shayṭān-ir-rajīm

    I seek refuge in Allah from Satan, the accursed.

  14. 14
    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.

  15. 15
    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.

  16. 16
    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×
  17. 17
    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.

  18. 18
    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×
  19. 19
    Sitting up between sajdasJalsa

    Say takbir as you sit. Pause briefly with a straight back.

    اللّٰهُ أَكْبَر

    Allāhu akbar

    Allah is the Greatest

  20. 20
    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×
  21. 21
    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.

  22. 22
    Stand up for the 3rd rakʿaTakbir

    Say takbir as you rise. Fold your hands and continue.

    اللّٰهُ أَكْبَر

    Allāhu akbar

    Allah is the Greatest

  23. 23
    Dua Isti'adhaQiyām

    أَعُوذُ بِٱللَّٰهِ مِنَ ٱلشَّيْطَانِ ٱلرَّجِيم

    Aʿūdhu billāhi min-ash-shayṭān-ir-rajīm

    I seek refuge in Allah from Satan, the accursed.

  24. 24
    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.

  25. 25
    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×
  26. 26
    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.

  27. 27
    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×
  28. 28
    Sitting up between sajdasJalsa

    Say takbir as you sit. Pause briefly with a straight back.

    اللّٰهُ أَكْبَر

    Allāhu akbar

    Allah is the Greatest

  29. 29
    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×
  30. 30
    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.

  31. 31
    Ṣ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.

  32. 32
    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.

  33. 33
    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.

Full walkthrough with wuduPrayer times for my city

Guides for every prayer

FajrالفجرDhuhrالظهرAsrالعصرIshaالعشاءWitrالوترJumu'ahالجمعةTahajjudالتهجدIstikharaالاستخارةJanazahالجنازةEidالعيدTarawihالتراويح
Back to How to Pray overview
Barakahبركة

Islam, in one quiet place. Built by a revert, for the ummah. No ads, no tracking.

Pray
  • Prayer times
  • How to pray
  • Qibla
  • Hijri calendar
Learn
  • Ask (AI)
  • New Muslim path
  • Duas & adhkar
  • Daily verse
  • Daily hadith
  • 99 Names
Tools
  • Halal scanner
  • Halal logos
  • Zakat calculator
  • Tasbih
Barakah
  • All features
  • About
  • Contact
  • Careers
  • Support + Premium
  • Dashboard
  • Settings
Legal
  • Privacy
  • Terms
© 2026 Barakah Life. Built with niyyah for the ummah.·PrivacyTermsAboutBlogContact
A starting point, not a substitute for a qualified scholar.