Sunnah Before and After Maghrib: Niyyah, Rak‘ahs and How to Pray

Sunnah before and after Maghrib: the ruling on each, the niyyah with Arabic and transliteration, how to pray step by step and the surahs to recite.

The Federal Territory Mosque in Kuala Lumpur at dusk

This is a complete guide to the sunnah before and after Maghrib: two rak‘ahs of qabliyah after the Maghrib adhan, and two rak‘ahs of ba‘diyah after the obligatory Maghrib prayer.1

It explains the ruling on both, the intention, how to pray step by step, the surahs to recite and the correct time, according to the Shafi‘i school.

Every intention and recitation comes with Arabic, transliteration and meaning, so you can start practising even if you cannot yet read Arabic fluently.

The Sunnah of Maghrib at a Glance

  • Before Maghrib (qabliyah): 2 light rak‘ahs, sunnah but not mu’akkadah. Prayed after the adhan, before the iqamah.
  • After Maghrib (ba‘diyah): 2 rak‘ahs, sunnah mu’akkadah.
  • Surahs: al-Kafirun and al-Ikhlas, or any surah you know by heart.
  • Intention: it must state before (qabliyah) or after (ba‘diyah).
TypeRulingWhen
Before Maghrib (qabliyah)Sunnah, not mu’akkadahAfter the adhan, before the iqamah
After Maghrib (ba‘diyah)Sunnah mu’akkadahAfter the obligatory Maghrib prayer

The Sunnah Before Maghrib

The Prophet ﷺ said, “Pray before Maghrib,” and the third time he added, “for whoever wishes.”2 In Madinah, the Companions would hurry to the pillars of the mosque to pray two rak‘ahs as soon as the Maghrib adhan was called.3 The Prophet ﷺ saw them and did not forbid it.4

The sound view in the Shafi‘i school is that these two rak‘ahs are sunnah, and they are kept short.5,1

The Sunnah After Maghrib

The two rak‘ahs after Maghrib are among the ten rawatib rak‘ahs that Ibn Umar memorised from the practice of the Prophet ﷺ, and he prayed them at home.6 These are the mu’akkadah, so do not leave them even if you miss the ones before.

The rawatib for every prayer are listed in our Sunnah Rawatib guide.

Because Maghrib has a sunnah prayer both before and after it, the intention must state which one. Intending only “the sunnah of Maghrib” is not enough.7

Wordings of the Intention for the Sunnah of Maghrib

Before Maghrib (qabliyah)

أُصَلِّي سُنَّةَ الْمَغْرِبِ رَكْعَتَيْنِ قَبْلِيَّةً لِلّٰهِ تَعَالَى

Usolli sunnatal-maghribi rak‘ataini qabliyyatan lillahi ta‘ala.



Meaning

“I pray two rak‘ahs of the sunnah before Maghrib for the sake of Allah, the Most High.”


After Maghrib (ba‘diyah)

أُصَلِّي سُنَّةَ الْمَغْرِبِ رَكْعَتَيْنِ بَعْدِيَّةً لِلّٰهِ تَعَالَى

Usolli sunnatal-maghribi rak‘ataini ba‘diyyatan lillahi ta‘ala.



Meaning

“I pray two rak‘ahs of the sunnah after Maghrib for the sake of Allah, the Most High.”

Rak‘ah 1 of 2

First Rak‘ah

1

Begin with the Intention and the Opening Takbir

Stand upright facing the qibla. Hold the intention for the sunnah before Maghrib in your heart as you say the opening takbir.

أُصَلِّي سُنَّةَ الْمَغْرِبِ رَكْعَتَيْنِ قَبْلِيَّةً لِلّٰهِ تَعَالَى

Uṣallī sunnatal-maghribi rak‘ataini qabliyyatan lillāhi ta‘ālā

Meaning: “I pray two rak‘ahs of the sunnah before Maghrib 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.8

For the sunnah after Maghrib, change qabliyyatan to ba‘diyyatan, meaning “I pray two rak‘ahs of the sunnah after Maghrib for the sake of Allah, the Most High”.7

How to raise the hands for the opening takbir

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

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

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


2

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

اَللّٰهُ أَكْبَرُ كَبِيرًا وَالْحَمْدُ لِلّٰهِ كَثِيرًا وَسُبْحَانَ اللّٰهِ بُكْرَةً وَأَصِيلًا. وَجَّهْتُ وَجْهِيَ لِلَّذِي فَطَرَ السَّمَاوَاتِ وَالْأَرْضَ حَنِيفًا مُسْلِمًا وَمَا أَنَا مِنَ الْمُشْرِكِينَ. إِنَّ صَلَاتِي وَنُسُكِي وَمَحْيَايَ وَمَمَاتِي لِلّٰهِ رَبِّ الْعَالَمِينَ. لَا شَرِيكَ لَهُ وَبِذَٰلِكَ أُمِرْتُ وَأَنَا مِنَ الْمُسْلِمِينَ.

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.


3

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

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

بِسۡمِ ٱللَّهِ ٱلرَّحۡمَٰنِ ٱلرَّحِيمِ ١ ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِينَ ٢ ٱلرَّحۡمَٰنِ ٱلرَّحِيمِ ٣ مَٰلِكِ يَوۡمِ ٱلدِّينِ ٤ إِيَّاكَ نَعۡبُدُ وَإِيَّاكَ نَسۡتَعِينُ ٥ ٱهۡدِنَا ٱلصِّرَٰطَ ٱلۡمُسۡتَقِيمَ ٦ صِرَٰطَ ٱلَّذِينَ أَنۡعَمۡتَ عَلَيۡهِمۡ غَيۡرِ ٱلۡمَغۡضُوبِ عَلَيۡهِمۡ وَلَا ٱلضَّآلِّينَ ٧

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


4

Recite Surah al-Kafirun

After al-Fatihah, it is sunnah to recite a surah or a few verses of the Quran. In the two rak‘ahs after Maghrib, the Prophet ﷺ often recited Surah al-Kafirun in the first rak‘ah and al-Ikhlas in the second.15 For the sunnah before Maghrib, choose a short surah because this prayer is kept light. Everything is recited quietly.16

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


5

After the Surah, Bow for Ruku‘

The position of ruku‘ in prayer

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

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


6

Rise for I‘tidal

The position of i‘tidal

Raise your head from ruku‘ while raising both hands as you did for the opening takbir.19 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.”


7

Go Down for Sujud (Prostration)

The correct position of sujud in prayer

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

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


8

Sit Between the Two Prostrations

Sitting 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.21 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.”


9

Make the Second Sujud

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

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

Subḥāna rabbiyal-a‘lā wa biḥamdih (3x)



Meaning

“Glory be to my Lord, the Most High, and praise be to Him.”


10

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.

The resting sit
The Resting Sit

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


11

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


12

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.


13

Recite Surah al-Ikhlas

After al-Fatihah, recite Surah al-Ikhlas, or another surah you know.

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


14

After the Surah, Bow for Ruku‘

Ruku‘ in prayer

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.


15

Rise for I‘tidal

The position of 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.”


16

Go Down for Sujud

Sujud in prayer

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.


17

Sit Between the Two Prostrations

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


18

Make the Second Sujud

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.


19

Sit for the Final Tashahhud

Sitting 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 ﷺ‎22:

التَّحِيَّاتُ الْمُبَارَكَاتُ الصَّلَوَاتُ الطَّيِّبَاتُ لِلّٰهِ. السَّلاَمُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ. السَّلاَمُ عَلَيْنَا وَعَلَى عِبَادِ اللّٰهِ الصَّالِحِينَ. أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللّٰهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا رَسُولُ اللّٰهِ. اللَّهُمَّ صَلِّ عَلَى مُحَمَّدٍ وَعَلَى آلِ مُحَمَّدٍ. كَمَا صَلَّيْتَ عَلَى إِبْرَاهِيمَ وَعَلَى آلِ إِبْرَاهِيمَ وَبَارِكْ عَلَى مُحَمَّدٍ وَعَلَى آلِ مُحَمَّدٍ. كَمَا بَارَكْتَ عَلَى إِبْرَاهِيمَ وَعَلَى آلِ إِبْرَاهِيمَ فِي الْعَالَمِينَ إِنَّكَ حَمِيدٌ مَجِيدٌ.

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

The difference between the first and final tashahhud sittings

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

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


20

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

Giving the salam

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

That completes two rak‘ahs of the sunnah of Maghrib. The steps are the same for the sunnah before and after Maghrib. Only the intention differs.

TypeBeginsEnds
Before Maghrib (qabliyah)The time of Maghrib begins (after the adhan)The time of Maghrib ends
After Maghrib (ba‘diyah)After the obligatory Maghrib prayerThe time of Maghrib ends

The time of Maghrib begins at sunset and lasts until the red twilight disappears, close to the time of Isha.27 Both sunnah prayers still count as on time as long as the time of Maghrib has not ended.28

Praying Sunnah After the Maghrib Adhan

A sunnah prayer prayed after the Maghrib adhan and before the iqamah is the sunnah before Maghrib (qabliyah). Keep it short so the obligatory Maghrib prayer is not delayed from the start of its time.5

The Iqamah Has Already Been Called

Do not begin a sunnah prayer once the iqamah has been called. Join the imam first.29 After the obligatory prayer, you can still pray the missed sunnah before Maghrib, then the sunnah after Maghrib. Pray them separately, each with its own intention.30

When Combining Maghrib and Isha

The order is: the obligatory Maghrib, the obligatory Isha, the sunnah after Maghrib, the sunnah of Isha, then witr. Do not insert sunnah prayers between the two obligatory prayers.31

Making Up the Sunnah of Maghrib

If the time of Maghrib has ended, it is sunnah to make up the missed rawatib of Maghrib, especially the two rak‘ahs after Maghrib.32

At Home or in the Mosque?

The sunnah after Maghrib is best prayed at home. The Prophet ﷺ prayed it at home, and once called it the prayer of the home.6,33 But if you are waiting for Isha in the mosque or worry you will forget, praying it in the mosque is better than leaving it.34

  • Part of the 12 rak‘ahs that are promised a house in Paradise, namely the two rak‘ahs after Maghrib.35
  • A practice the Prophet ﷺ kept every day.6
  • It fills the time between the adhan and the iqamah with prayer, as the Companions did.36,3
  • They make up for shortcomings in the obligatory prayers on the Day of Reckoning.37

If you are just starting, keep the two rak‘ahs after Maghrib first. Once that becomes a habit, add the two light rak‘ahs before it.

Is the sunnah of Maghrib prayed before or after Maghrib?

Both. The two rak‘ahs before Maghrib are sunnah but not mu’akkadah, while the two rak‘ahs after Maghrib are sunnah mu’akkadah.1

How many rak‘ahs is the sunnah before Maghrib?

Two rak‘ahs, kept short.1

How many rak‘ahs is the sunnah after Maghrib?

Two rak‘ahs. They are among the mu’akkadah rawatib that the Prophet ﷺ kept.6

What is the intention for the sunnah before Maghrib?

“Usolli sunnatal-maghribi rak‘ataini qabliyyatan lillahi ta‘ala”, meaning: I pray two rak‘ahs of the sunnah before Maghrib for the sake of Allah, the Most High.7

What is the intention for the sunnah after Maghrib?

“Usolli sunnatal-maghribi rak‘ataini ba‘diyyatan lillahi ta‘ala”, meaning: I pray two rak‘ahs of the sunnah after Maghrib for the sake of Allah, the Most High.7

Can a sunnah prayer be prayed after the Maghrib adhan?

Yes. That is the sunnah before Maghrib, prayed after the adhan and before the iqamah.5

Is the sunnah before Maghrib disliked because the time of Maghrib is short?

No. The sound view in the Shafi‘i school is that it is sunnah. Just keep it short so the obligatory Maghrib prayer is not delayed.5

Which surahs are recited in the sunnah of Maghrib?

For the sunnah after Maghrib, the Prophet ﷺ often recited al-Kafirun and al-Ikhlas. Any other surah is also fine.15

Can a missed sunnah of Maghrib be made up?

Yes, and making it up is sunnah.32

Is the sunnah of Maghrib recited aloud or quietly?

Quietly, even though the obligatory Maghrib prayer is recited aloud.16

Closing

Maghrib comes just as the day ends and the night begins. The two rak‘ahs before and after it are an easy way to begin the night with prayer.

Keep the two rak‘ahs after Maghrib, because they are mu’akkadah. Once that becomes a habit, add the two light rak‘ahs before it, in sha’ Allah.

Footnotes & References

  1. The two rak‘ahs after Maghrib are among the mu’akkadah rawatib. The two light rak‘ahs before Maghrib are sunnah according to the sound view, but not mu’akkadah. [al-Nawawi, Minhaj al-Talibin, 1/36] ↩︎
  2. The Prophet ﷺ said: “Pray before Maghrib.” The third time he added: “For whoever wishes,” because he did not want people to take it as a required practice. [Sahih al-Bukhari, no. 1183] ↩︎
  3. Anas said: “In Madinah, when the muezzin called the adhan for Maghrib, they would hurry to the pillars of the mosque and pray two rak‘ahs, so that a stranger entering the mosque would think the obligatory prayer had already been prayed, because of how many were praying.” [Sahih Muslim, no. 837] ↩︎
  4. Anas said: “We used to pray two rak‘ahs after sunset, before the Maghrib prayer, in the time of the Prophet ﷺ.” When asked whether the Prophet ﷺ prayed them, he replied: “He saw us praying them, and he neither commanded nor forbade us.” [Sahih Muslim, no. 836] ↩︎
  5. The sound view in the Shafi‘i school is that the two rak‘ahs before Maghrib are sunnah. They are prayed after the time of Maghrib begins and before the muezzin starts the iqamah. [al-Nawawi, al-Majmu‘ Sharh al-Muhadhdhab, 4/8 and 4/9] ↩︎
  6. Ibn Umar said: “I memorised ten rak‘ahs from the Prophet ﷺ: two rak‘ahs before Zuhr, two after it, two after Maghrib in his house, two after Isha in his house and two before Subh.” [Sahih al-Bukhari, no. 1180] ↩︎
  7. A sunnah prayer tied to a time must be specified in the intention. For a prayer with both a qabliyah and a ba‘diyah, such as Maghrib, it is obligatory to specify before or after. The intention is in the heart, and it is sunnah to say it before the takbir. [Ibn Hajar al-Haytami, Tuhfat al-Muhtaj, 2/10. al-Nawawi, Minhaj al-Talibin, 1/25] ↩︎
  8. 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] ↩︎
  9. 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] ↩︎
  10. 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] ↩︎
  11. 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] ↩︎
  12. 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: «ثم التعوذ ويسرهما ويتعوذ في كل ركعة على المذهب والأولى آكد»] ↩︎
  13. In the Shafi‘i school, al-Fatihah must be recited in every rak‘ah by the imam, the follower and the one praying alone. [al-Majmu‘ 3/364] ↩︎
  14. After al-Fatihah, it is sunnah to say “Āmīn” with the letter mim unstressed. [Minhaj al-Talibin, Chapter on the Description of Prayer: «ويسن عقب الفاتحة آمين خفيفة الميم»] ↩︎
  15. Ibn Mas‘ud said: “I cannot count how many times I heard the Messenger of Allah ﷺ recite in the two rak‘ahs after Maghrib and the two rak‘ahs before Subh: Qul ya ayyuhal-kafirun and Qul huwallahu ahad.” Al-Tirmidhi graded it gharib. [Sunan al-Tirmidhi, no. 431] ↩︎
  16. All the rawatib are recited quietly, by agreement of the Shafi‘i scholars, including the sunnah after Maghrib and Isha. [al-Nawawi, al-Majmu‘, 3/391] ↩︎
  17. 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: «وأكمله تسوية ظهره وعنقه ونصب ساقيه وأخذ ركبتيه بيديه وتفرقة أصابعه للقبلة ويكبر في ابتداء هويه ويرفع يديه كإحرامه»] ↩︎
  18. 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] ↩︎
  19. 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: «ويسن رفع يديه مع ابتداء رفع رأسه قائلا سمع الله لمن حمده»] ↩︎
  20. 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: «وأقله مباشرة بعض جبهته مصلاه… قلت: الأظهر وجوبه… وأن ترتفع أسافله على أعاليه في الأصح وأكمله يكبر لهويه بلا رفع ويضع ركبتيه ثم يديه ثم جبهته وأنفه», «ثم يسجد الثانية كالأولى»] ↩︎
  21. 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: «وأكمله يكبر ويجلس مفترشا واضعا يديه قريبا من ركبتيه»] ↩︎
  22. 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] ↩︎
  23. 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] ↩︎
  24. 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] ↩︎
  25. 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] ↩︎
  26. 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] ↩︎
  27. The time of Maghrib begins at sunset and lasts until the red twilight disappears. This is the old view (qawl qadim), which al-Nawawi judged to be stronger. [al-Nawawi, Minhaj al-Talibin, 1/21] ↩︎
  28. The time of the qabliyah begins with the time of the obligatory prayer, and the time of the ba‘diyah begins once the obligatory prayer has been prayed. Both end when the time of the obligatory prayer ends. [al-Nawawi, Minhaj al-Talibin, 1/36. al-Khatib al-Shirbini, Mughni al-Muhtaj, 1/457] ↩︎
  29. Once the iqamah has begun, do not start a sunnah prayer, based on the hadith: “When the iqamah for prayer is called, there is no prayer except the obligatory one.” [al-Nawawi, al-Majmu‘, 3/255. Sahih Muslim, no. 710] ↩︎
  30. It is permissible to delay the qabliyah rawatib until after the obligatory prayer, and it still counts as on time. It is even recommended when the iqamah is being called or about to be called. The ba‘diyah cannot be brought forward before the obligatory prayer, because its time has not yet begun. Ibn Hajar rejected the suggestion of combining the qabliyah and the ba‘diyah with one salam, because their intentions differ. [Zayn al-Din al-Malibari, Fath al-Mu‘in, with I‘anat al-Talibin, 1/287] ↩︎
  31. When combining Maghrib and Isha, pray both obligatory prayers first, then the sunnah after Maghrib, then the sunnah of Isha, then witr. The rawatib are not inserted between the two obligatory prayers, because combining requires continuity (muwalat). [al-Nawawi, Rawdat al-Talibin, 1/402. Ibn Hajar al-Haytami, Tuhfat al-Muhtaj, 2/397] ↩︎
  32. It is sunnah to make up missed rawatib, according to the sound view in the Shafi‘i school. [al-Nawawi, al-Majmu‘, 4/43] ↩︎
  33. The Prophet ﷺ prayed Maghrib in the mosque of Banu Abd al-Ashhal. When he saw them praying sunnah after it, he said: “This is the prayer of the houses.” [Sunan Abi Dawud, no. 1300] ↩︎
  34. The Prophet ﷺ said: “The best prayer of a person is in his home, except the obligatory prayer.” [Sahih al-Bukhari, no. 731] ↩︎
  35. Umm Habibah narrated: “Whoever prays twelve rak‘ahs in a day and night, a house will be built for him in Paradise: four before Zuhr, two after it, two after Maghrib, two after Isha and two before Subh.” [Sahih Muslim, no. 728. Sunan al-Tirmidhi, no. 415] ↩︎
  36. The Prophet ﷺ said: “Between every two calls (the adhan and the iqamah) there is a prayer.” He said it three times, and the third time he added: “For whoever wishes.” [Sahih al-Bukhari, no. 624. Sahih Muslim, no. 838] ↩︎
  37. If a person’s obligatory prayers are lacking, Allah says: “Look, does My servant have any voluntary prayers?” and the shortfall in his obligatory prayers is completed with them. [Sunan Abi Dawud, no. 864] ↩︎

Further Reading

  • al-Nawawi, Minhaj al-Talibin wa ‘Umdat al-Muftin.
  • al-Nawawi, al-Majmu‘ Sharh al-Muhadhdhab, volumes 3 and 4.
  • al-Nawawi, Rawdat al-Talibin, volume 1.
  • Ibn Hajar al-Haytami, Tuhfat al-Muhtaj bi Sharh al-Minhaj, volume 2.
  • al-Khatib al-Shirbini, Mughni al-Muhtaj, volume 1.
  • 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. Abu Dawud, Sunan Abi Dawud. al-Tirmidhi, Sunan al-Tirmidhi.

Written by

Muhamad Naim Abd Manaf

Founder of AkuIslam. Writing worship guides since 2010 in plain language, with references that are checked.

اِقْرَأْ أَيْضًا

Related Reading

Chosen based on this article

Share your thoughts or questions

Your email address will not be published. Required fields are marked *