How to pray Maghrib, step by step

Maghrib, the sunset prayer, has 3 rak‘ahs: the first two recited aloud, the third silently. Follow it movement by movement.

3 rak‘ahsFrom sunset until the twilight disappears.

Optional: choosing your school hides the actions it does not perform and highlights its view. Nothing is imposed.

Step-by-step mode

Step 1 / 30

Rak‘ah 1 / 3

Standing towards the qibla, intention

Standing, facing the qibla (the direction of the Kaaba), form in your heart the intention of the prayer you are performing.

Obligatory · all 4 schools

For women

A woman covers her whole body except the face and hands, according to the most widespread view.

Find the qibla direction →
Schools, details and sources

Intention is a condition of prayer for the Hanafi and Hanbali schools and a pillar for the others. Whoever cannot stand prays sitting, and otherwise lying on their side.

All the steps

To read the whole guide at once. “Follow from here” opens the step-by-step mode at that step.

1st rak‘ah

  1. 1.Standing towards the qibla, intention

    Standing, facing the qibla (the direction of the Kaaba), form in your heart the intention of the prayer you are performing.

    Obligatory · all 4 schools

    For women

    A woman covers her whole body except the face and hands, according to the most widespread view.

    Find the qibla direction →
    Schools, details and sources

    Intention is a condition of prayer for the Hanafi and Hanbali schools and a pillar for the others. Whoever cannot stand prays sitting, and otherwise lying on their side.

  2. 2.Opening takbir

    Raise your hands to the level of your shoulders or ears and say “Allahu akbar”: you have entered the prayer.

    Obligatory · all 4 schools

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

    Allahu akbar

    Allah is the Greatest.

    Schools, details and sources
  3. 3.Placing the hands

    Place your right hand over your left hand.

    Recommended (sunnah) · Hanafi, Shafi‘i, HanbaliNot done in obligatory prayer · Maliki
    Schools, details and sources

    Below the navel for the Hanafi and Hanbali schools, between the navel and the chest for the Shafi‘i school. The Maliki school, in its adopted view, leaves the arms by the sides.

  4. 4.Opening supplication

    Quietly say one of these supplications, as you prefer.

    Recommended (sunnah) · Hanafi, Shafi‘i, HanbaliNot done in obligatory prayer · Maliki

    Choose one

    سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ وَتَبَارَكَ اسْمُكَ وَتَعَالَى جَدُّكَ وَلاَ إِلَهَ غَيْرُكَ

    Subhanaka Allahumma wa bihamdika, wa tabaraka-smuka, wa ta’ala jadduka, wa la ilaha ghayruk.

    Glory be to You, O Allah, and praise. Blessed is Your name, exalted is Your majesty, and there is no god but You.

    Schools, details and sources
  5. 5.Al-Fatiha

    Quietly seek refuge in Allah, then recite Al-Fatiha, beginning with “Bismillah…”. At the end, say “Ameen”.

    Obligatory · Maliki, Shafi‘i, HanbaliRequired (wajib) · Hanafi
    Aloud

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

    A’udhu billahi minash-shaytanir-rajim

    I seek refuge in Allah from Satan, the accursed.

    1. 1

      بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ

      Bismillaahir Rahmaanir Raheem

      In the name of Allah, the Entirely Merciful, the Especially Merciful.

    2. 2

      ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ

      Alhamdu lillaahi Rabbil 'aalameen

      [All] praise is [due] to Allah, Lord of the worlds -

    3. 3

      ٱلرَّحْمَٰنِ ٱلرَّحِيمِ

      Ar-Rahmaanir-Raheem

      The Entirely Merciful, the Especially Merciful,

    4. 4

      مَٰلِكِ يَوْمِ ٱلدِّينِ

      Maaliki Yawmid-Deen

      Sovereign of the Day of Recompense.

    5. 5

      إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ

      Iyyaaka na'budu wa lyyaaka nasta'een

      It is You we worship and You we ask for help.

    6. 6

      ٱهْدِنَا ٱلصِّرَٰطَ ٱلْمُسْتَقِيمَ

      Ihdinas-Siraatal-Mustaqeem

      Guide us to the straight path -

    7. 7

      صِرَٰطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّآلِّينَ

      Siraatal-lazeena an'amta 'alaihim ghayril-maghdoobi 'alaihim wa lad-daaalleen

      The path of those upon whom You have bestowed favor, not of those who have evoked [Your] anger or of those who are astray.

    Read and listen on the Quran page — Al-Fatiha

    آمِينَ

    Ameen

    “Answer our prayer”, said at the end of Al-Fatiha.

    Schools, details and sources

    A pillar for the Maliki, Shafi‘i and Hanbali schools; for the Hanafi school the obligation is to recite Qur’an, and Al-Fatiha is a duty (wajib). The Maliki school says neither the seeking of refuge nor the basmala in obligatory prayer.

  6. 6.A short surah

    Then recite a surah or a few verses, for example one of these.

    Required (wajib) · HanafiRecommended (sunnah) · Maliki, Shafi‘i, Hanbali
    Aloud
    1. 1

      قُلْ هُوَ ٱللَّهُ أَحَدٌ

      Qul huwal laahu ahad

      Say, "He is Allah, [who is] One,

    2. 2

      ٱللَّهُ ٱلصَّمَدُ

      Allah hus-samad

      Allah, the Eternal Refuge.

    3. 3

      لَمْ يَلِدْ وَلَمْ يُولَدْ

      Lam yalid wa lam yoolad

      He neither begets nor is born,

    4. 4

      وَلَمْ يَكُن لَّهُۥ كُفُوًا أَحَدٌۢ

      Wa lam yakul-lahu kufuwan ahad

      Nor is there to Him any equivalent."

    Read and listen on the Quran page — Al-Ikhlas
    Schools, details and sources

    A duty (wajib) for the Hanafi school in the first two rak‘ahs, recommended for the other schools. In the 3rd and 4th rak‘ahs only Al-Fatiha is recited.

  7. 7.Bowing (ruku‘)

    Say “Allahu akbar” and bow: hands on your knees, back straight. Stay still for a moment.

    Obligatory · all 4 schools

    سُبْحَانَ رَبِّيَ الْعَظِيمِ

    Subhana Rabbiyal-’Adheem

    Glory be to my Lord, the Most Great.

    at least once; often three times

    For women

    A woman keeps her body more gathered in bowing and prostration: this is what al-Shafi‘i (al-Umm) and the Maliki school recommend; other scholars describe the same posture for everyone.

    Schools, details and sources
    The words:Required (wajib) · HanbaliRecommended (sunnah) · Hanafi, Maliki, Shafi‘i

    The Shafi‘i and Hanbali schools also raise the hands when bowing and rising; the Hanafi school, and the Maliki school in its best-known view, raise them only at the opening. Saying the formula three times comes from a hadith with a weak chain; once is enough.

  8. 8.Rising from bowing

    Rise saying “Sami‘Allahu liman hamidah”, then, standing straight: “Rabbana wa lakal-hamd”.

    Obligatory · Maliki, Shafi‘i, HanbaliRequired (wajib) · Hanafi

    سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ

    Sami’Allahu liman hamidah

    Allah hears the one who praises Him.

    رَبَّنَا وَلَكَ الْحَمْدُ

    Rabbana wa lakal-hamd

    Our Lord, to You belongs all praise.

    Schools, details and sources
    The words:Required (wajib) · HanbaliRecommended (sunnah) · Hanafi, Maliki, Shafi‘i

    For the Hanbali school, someone praying behind an imam says only “Rabbana wa lakal-hamd”.

  9. 9.Prostration (sujud)

    Say “Allahu akbar” and prostrate on seven parts of the body: the forehead with the nose, both hands, both knees and the toes of both feet. Stay still for a moment.

    Obligatory · all 4 schools

    سُبْحَانَ رَبِّيَ الأَعْلَى

    Subhana Rabbiyal-A’la

    Glory be to my Lord, the Most High.

    at least once; often three times

    For women

    A woman keeps herself more gathered, arms close to the body and stomach close to the thighs, according to al-Shafi‘i and the Maliki school; other scholars describe the same posture for everyone.

    Schools, details and sources
  10. 10.Sitting between the two prostrations

    Rise saying “Allahu akbar” and sit on your left leg, staying still for a moment.

    Obligatory · Maliki, Shafi‘i, HanbaliRequired (wajib) · Hanafi

    Choose one

    رَبِّ اغْفِرْ لِي رَبِّ اغْفِرْ لِي

    Rabbighfir li, Rabbighfir li

    My Lord, forgive me. My Lord, forgive me.

    Schools, details and sources
  11. 11.The second prostration

    Say “Allahu akbar” and prostrate again, as the first time.

    Obligatory · all 4 schools

    سُبْحَانَ رَبِّيَ الأَعْلَى

    Subhana Rabbiyal-A’la

    Glory be to my Lord, the Most High.

    at least once; often three times

    Schools, details and sources
    The words:Required (wajib) · HanbaliRecommended (sunnah) · Hanafi, Maliki, Shafi‘i

2nd rak‘ah

  1. 12.Al-Fatiha

    Stand up saying “Allahu akbar”, then recite Al-Fatiha and say “Ameen”.

    Obligatory · Maliki, Shafi‘i, HanbaliRequired (wajib) · Hanafi
    Aloud

    آمِينَ

    Ameen

    “Answer our prayer”, said at the end of Al-Fatiha.

    Schools, details and sources

    A pillar for the Maliki, Shafi‘i and Hanbali schools; for the Hanafi school the obligation is to recite Qur’an, and Al-Fatiha is a duty (wajib). The Maliki school says neither the seeking of refuge nor the basmala in obligatory prayer.

  2. 13.A short surah

    As in the previous rak‘ah (details above).

  3. 14.Bowing (ruku‘)

    As in the previous rak‘ah (details above).

  4. 15.Rising from bowing

    As in the previous rak‘ah (details above).

  5. 16.Prostration (sujud)

    As in the previous rak‘ah (details above).

  6. 17.Sitting between the two prostrations

    As in the previous rak‘ah (details above).

  7. 18.The second prostration

    As in the previous rak‘ah (details above).

  8. 19.The first tashahhud

    After the second prostration of the 2nd rak‘ah, remain seated and recite the tashahhud, then stand up saying “Allahu akbar”.

    Required (wajib) · Hanafi, HanbaliRecommended (sunnah) · Maliki, Shafi‘i

    التَّحِيَّاتُ لِلَّهِ، وَالصَّلَوَاتُ وَالطَّيِّبَاتُ، السَّلاَمُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللَّهِ وَبَرَكَاتُهُ، السَّلاَمُ عَلَيْنَا وَعَلَى عِبَادِ اللَّهِ الصَّالِحِينَ، أَشْهَدُ أَنْ لاَ إِلَهَ إِلَّا اللَّهُ، وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ

    At-tahiyyatu lillahi was-salawatu wat-tayyibat. As-salamu ’alayka ayyuhan-nabiyyu wa rahmatullahi wa barakatuh. As-salamu ’alayna wa ’ala ’ibadillahis-salihin. Ash-hadu an la ilaha illallah, wa ash-hadu anna Muhammadan ’abduhu wa rasuluh.

    Greetings, prayers and good things are due 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 His servant and Messenger.

    Schools, details and sources

    A duty (wajib) for the Hanafi and Hanbali schools, recommended for the Maliki and Shafi‘i schools. If it is forgotten, one makes the prostration of forgetfulness (hadith of Ibn Buhaynah).

3rd rak‘ah

  1. 20.Al-Fatiha

    Stand up saying “Allahu akbar”, then recite Al-Fatiha and say “Ameen”.

    Obligatory · Maliki, Shafi‘i, HanbaliRequired (wajib) · Hanafi
    Silently

    آمِينَ

    Ameen

    “Answer our prayer”, said at the end of Al-Fatiha.

    Schools, details and sources

    A pillar for the Maliki, Shafi‘i and Hanbali schools; for the Hanafi school the obligation is to recite Qur’an, and Al-Fatiha is a duty (wajib). The Maliki school says neither the seeking of refuge nor the basmala in obligatory prayer.

  2. 21.Bowing (ruku‘)

    As in the previous rak‘ah (details above).

  3. 22.Rising from bowing

    As in the previous rak‘ah (details above).

  4. 23.Prostration (sujud)

    As in the previous rak‘ah (details above).

  5. 24.Sitting between the two prostrations

    As in the previous rak‘ah (details above).

  6. 25.The second prostration

    As in the previous rak‘ah (details above).

  7. 26.The final tashahhud

    After the last prostration, sit and recite the tashahhud.

    Obligatory · all 4 schools

    التَّحِيَّاتُ لِلَّهِ، وَالصَّلَوَاتُ وَالطَّيِّبَاتُ، السَّلاَمُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللَّهِ وَبَرَكَاتُهُ، السَّلاَمُ عَلَيْنَا وَعَلَى عِبَادِ اللَّهِ الصَّالِحِينَ، أَشْهَدُ أَنْ لاَ إِلَهَ إِلَّا اللَّهُ، وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ

    At-tahiyyatu lillahi was-salawatu wat-tayyibat. As-salamu ’alayka ayyuhan-nabiyyu wa rahmatullahi wa barakatuh. As-salamu ’alayna wa ’ala ’ibadillahis-salihin. Ash-hadu an la ilaha illallah, wa ash-hadu anna Muhammadan ’abduhu wa rasuluh.

    Greetings, prayers and good things are due 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 His servant and Messenger.

    Schools, details and sources
    The words:Obligatory · Shafi‘i, HanbaliRequired (wajib) · HanafiRecommended (sunnah) · Maliki

    Sitting is obligatory for all schools. Reciting the tashahhud is a pillar for the Shafi‘i and Hanbali schools, a duty (wajib) for the Hanafi school, a sunnah for the Maliki school. The Maliki school sits on the left hip in every sitting; the Hanbali school only in the final tashahhud of 3- and 4-rak‘ah prayers.

  8. 27.Blessings on the Prophet ﷺ

    Still seated, send blessings on the Prophet ﷺ (the Ibrahimi prayer).

    Obligatory · Shafi‘i, HanbaliRecommended (sunnah) · Hanafi, Maliki

    اللَّهُمَّ صَلِّ عَلَى مُحَمَّدٍ وَعَلَى آلِ مُحَمَّدٍ، كَمَا صَلَّيْتَ عَلَى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ، اللَّهُمَّ بَارِكْ عَلَى مُحَمَّدٍ وَعَلَى آلِ مُحَمَّدٍ، كَمَا بَارَكْتَ عَلَى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ

    Allahumma salli ’ala Muhammadin wa ’ala ali Muhammad, kama sallayta ’ala ali Ibrahim, innaka Hamidun Majid. Allahumma barik ’ala Muhammadin wa ’ala ali Muhammad, kama barakta ’ala ali Ibrahim, innaka Hamidun Majid.

    O Allah, send Your grace upon Muhammad and the family of Muhammad, as You sent Your grace upon the family of Abraham; You are indeed Praiseworthy, Glorious. O Allah, bless Muhammad and the family of Muhammad, as You blessed the family of Abraham; You are indeed Praiseworthy, Glorious.

    Schools, details and sources
  9. 28.A supplication before the salam

    Seek Allah’s protection from four things, then, if you wish, make any supplication you like.

    Recommended (sunnah) · all 4 schools

    اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عَذَابِ القَبْرِ، وَمِنْ عَذَابِ النَّارِ، وَمِنْ فِتْنَةِ المَحْيَا وَالمَمَاتِ، وَمِنْ فِتْنَةِ المَسِيحِ الدَّجَّالِ

    Allahumma inni a’udhu bika min ’adhabil-qabr, wa min ’adhabin-nar, wa min fitnatil-mahya wal-mamat, wa min fitnatil-masihid-dajjal.

    O Allah, I seek refuge in You from the punishment of the grave, the punishment of the Fire, the trials of life and death, and the trial of the False Messiah (ad-Dajjal).

    Schools, details and sources
  10. 29.The final salam

    Turn your head to the right saying “As-salamu ‘alaykum wa rahmatullah”, then to the left saying the same. The prayer is complete.

    Obligatory · Maliki, Shafi‘i, HanbaliRequired (wajib) · Hanafi

    السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللَّهِ

    As-salamu ’alaykum wa rahmatullah

    Peace and the mercy of Allah be upon you.

    Schools, details and sources
  11. 30.After the prayer

    Stay seated for a few moments for the remembrances after prayer.

    Recommended (sunnah) · all 4 schools

    أَسْتَغْفِرُ اللهَ (×3) اللَّهُمَّ أَنْتَ السَّلَامُ، وَمِنْكَ السَّلَامُ، تَبَارَكْتَ ذَا الْجَلَالِ وَالْإِكْرَامِ

    Astaghfirullah (3 times). Allahumma antas-salam, wa minkas-salam, tabarakta dhal-jalali wal-ikram.

    I seek Allah’s forgiveness (3 times). O Allah, You are Peace and from You comes peace. Blessed are You, O Possessor of majesty and honour.

    سُبْحَانَ اللَّهِ (×33) — الْحَمْدُ لِلَّهِ (×33) — اللَّهُ أَكْبَرُ (×33) لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ وَهُوَ عَلَى كُلِّ شَىْءٍ قَدِيرٌ

    Subhanallah (33), alhamdulillah (33), Allahu akbar (33), then: la ilaha illallahu wahdahu la sharika lah, lahul-mulku wa lahul-hamdu wa huwa ’ala kulli shay’in qadir.

    Glory be to Allah; praise be to Allah; Allah is the Greatest; then: there is no god but Allah alone, without partner; His is the dominion and His is the praise, and He has power over all things.

    Count the 33 with the online tasbeeh →
    Schools, details and sources

Key points

The schools differ on some markers, such as the start of ‘Asr: the exact time depends on your city and the calculation method. See prayer times

Get the adhan at every prayer time and find the Qibla, right in the app
Free · iOS & Android
Open the app

Frequently asked questions

Related tools

Further reading

100% Free App

Join 50,000+ Muslims

Download for free and never miss a prayer again