- Published on
Dua for Maghrib Prayer: Evening Supplications as the Day Ends
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • Deen Back
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

The day is ending. The sun drops below the horizon and the sky shifts through colors you cannot manufacture — orange fading into pink fading into the deep blue of approaching night. This transition happens every single day, and most of us scroll past it.
The Maghrib prayer is designed to interrupt that habit. It says: stop. Look at what Allah just did with the sky. And then turn to Him before the day's accounts close.
The duas within and around Maghrib are not just about completing an obligation. They are about consciously closing the day with gratitude, accountability, and a heart turned toward the One who gave you the day in the first place.
The Dua at Sunset — Before You Even Pray
When the sun begins to set, there is a specific dua to mark the moment:
أَمْسَيْنَا وَأَمْسَى الْمُلْكُ لِلَّهِ، وَالْحَمْدُ لِلَّهِ، لَا إِلَهَ إِلَّا اللَّهُ وَحْدَهُ لَا شَرِيكَ لَهُ
Amsayna wa amsal-mulku lillah, walhamdu lillah, la ilaha illallahu wahdahu la sharika lah
"We have reached the evening, and at this evening, the dominion belongs to Allah. Praise be to Allah. There is no god but Allah, alone, with no partner."
— (Abu Dawud 5086, Muslim 2723)
This is the evening counterpart of the morning dua. Where the morning version says asbahna (we have entered the morning), this says amsayna (we have entered the evening). Saying it at sunset — even if just internally — consciously marks the boundary between day and night.
The Duas Within the Maghrib Prayer
The three rakats of Maghrib follow the same structure as other prayers. After the opening takbir, begin with the opening supplication:
اللَّهُمَّ بَاعِدْ بَيْنِي وَبَيْنَ خَطَايَايَ كَمَا بَاعَدْتَ بَيْنَ الْمَشْرِقِ وَالْمَغْرِبِ
Allahumma ba'id bayni wa bayna khatayaya kama ba'adta baynal-mashriqi wal-maghrib
"O Allah, put a great distance between me and my sins, just as You have put a great distance between the east and the west."
— (Bukhari 744, Muslim 598)
This opening dua is narrated from the Prophet as an alternative to the standard Dua al-Istiftah. At Maghrib especially — as the day closes — asking Allah to distance you from the sins of the day just passed has a particular resonance.
In every sujood of Maghrib, pause after Subhana Rabbiyal A'la and add:
اللَّهُمَّ اغْفِرْ لِي مَا قَدَّمْتُ وَمَا أَخَّرْتُ
Allahummaghfir li ma qaddamtu wa ma akhkhartu
"O Allah, forgive me for what I have done in the past and what I will do in the future."
— (Muslim 771 — narrated as a dua the Prophet made in salah)
As the day ends, asking for forgiveness for both past actions and future ones is a fitting close.
The Story Behind Maghrib's Special Place
The Prophet ﷺ said of Maghrib: "It is the prayer of the righteous before you, and your children will protect it after you." (Tirmidhi 3689) Scholars understand this as a warning: Maghrib is a prayer that can easily be neglected because it falls at the transition between day and evening — exactly when families are gathering, meals are being prepared, and fatigue sets in.
In Ramadan, the Maghrib prayer carries even greater weight: it is the moment of breaking the fast. The Prophet said: "There are three whose dua is not rejected: the fasting person at the moment of breaking his fast..." (Tirmidhi 3598) Every Ramadan Maghrib is a window of near-guaranteed acceptance.
But outside Ramadan, the principle holds. The moments of transition — morning to day, day to evening — are moments of spiritual significance. The prayer at sunset is a natural point to bring your heart back.
How to Build Maghrib Into Your Evening Routine
The challenge with Maghrib is the timing. It falls right when the evening meal is being prepared, when children need attention, when the day's momentum finally winds down. Here is how to protect it:
Pray Maghrib immediately at its time. Of all five prayers, Maghrib has the shortest window. In many locations, the Maghrib window is less than 90 minutes before Isha begins. Do not delay it — pray as soon as adhan is called.
Start the evening adhkar right after. Before sitting for dinner, before checking messages, recite the evening adhkar. The most essential: A'udhu bikalimatillahit-tammati min sharri ma khalaq three times, Bismillahilladhi la yadurru ma'asmihi shay'un three times, and Ayatul Kursi. This creates a protective spiritual seal over the evening.
Pray the 2 sunnah rakats. Even if dinner is ready and the family is waiting, two quick rakats after Maghrib take under four minutes. These are among the lightest of the sunnah prayers and among the most consistently practiced by the Prophet ﷺ.
Use the Maghrib-to-Isha window. This hour or two is one of the most underutilized spiritual windows in the day. The household is calmer than during the day. Children may be settling. Instead of filling it entirely with screens, dedicate even fifteen minutes to Quran or dhikr before Isha.
Build Your Evening Prayer Habit
DeenBack tracks your Maghrib prayer and evening adhkar streaks — helping you close every day with gratitude, forgiveness, and a heart turned back to Allah.
Free download. Premium features available in-app.
Related Evening Duas
Dua for protection at the start of the evening:
بِسْمِ اللَّهِ الَّذِي لَا يَضُرُّ مَعَ اسْمِهِ شَيْءٌ فِي الأَرْضِ وَلَا فِي السَّمَاءِ وَهُوَ السَّمِيعُ الْعَلِيمُ
Bismillahilladhi la yadurru ma'asmihi shay'un fil-ardi wa la fis-sama'i wa huwas-sami'ul-'alim
"In the name of Allah, with Whose name nothing can harm, neither on earth nor in the sky, and He is the All-Hearing, All-Knowing."
— (Abu Dawud 5088, Tirmidhi 3388) — said 3 times at Maghrib, protects from sudden harm all evening
For the complete evening adhkar routine, see how to do evening adhkar. To understand the full significance of the sunset dua and what to recite, see dua for evening. For your post-prayer routine, see dua after salah. And if you are building your overall prayer consistency, how to be consistent in prayers covers the full system.
Common Questions About Maghrib
What should I recite in the first rakah of Maghrib after Al-Fatihah? The Prophet was reported to recite shorter surahs in Maghrib, though not exclusively. Surah Al-A'raf (7) was narrated as something he occasionally recited. For daily practice, short surahs from Juz Amma are excellent — Surah Al-Ikhlas, Al-Falaq, An-Nas.
Can I eat before praying Maghrib if food is ready? This is a fiqh question with some nuance. If the food was placed before you and you are hungry, scholars permit eating first to ensure you can pray with full concentration. But the standard is to pray first unless you are genuinely distracted by hunger.
Is there a special virtue to praying the first Maghrib of Ramadan? Yes. The first Maghrib of Ramadan is the first moment to break a full day of fasting, and the Prophet guaranteed the fasting person's dua at iftar is answered. Make this one count every year.
How do I avoid being distracted by my phone at Maghrib time? Put the phone face-down before making wudu. The habit of picking up the phone is stronger than most Muslims realize. Physical separation during the prayer and adhkar window makes a significant difference.
Let the Day End Well
Every Maghrib is a chance to end the day better than it started.
Whatever the day brought — the mistakes, the missed opportunities, the moments you wish you could take back — the evening prayer is where you bring them to Allah. Not with shame, but with honesty. And with the knowledge that ghafoor, Most Forgiving, and rahim, Most Merciful, are two of His most repeated names.
Pray Maghrib. Recite the evening adhkar. And let the night begin under His protection.
Close Every Day With Intention
DeenBack helps you build the evening ritual the Prophet loved — prayer on time, evening adhkar, and a gratitude streak that transforms how you experience the end of every day.
Free download. Premium features available in-app.
Frequently Asked Questions
What dua should I say at Maghrib time?
After the Maghrib prayer, begin the evening adhkar immediately. The most important is: A'udhu bikalimatillahit-tammati min sharri ma khalaq — said 3 times at Maghrib and Fajr. Also recite Ayatul Kursi after every obligatory prayer.
Is there a dua for the sunset itself?
Yes. When the sun sets, say: Amsayna wa amsal-mulku lillah, walhamdu lillah... (Abu Dawud 5086) — 'We have reached evening, and at this evening, dominion belongs to Allah, and praise be to Allah.' The evening version mirrors the morning dua.
What are the sunnah rakats for Maghrib?
There are 2 sunnah rakats after the 3 fard rakats of Maghrib. The Prophet rarely missed these. The Maghrib sunnah is light — recite short surahs — but the habit of praying it is significant.
Why is Maghrib described as the blessed prayer?
Scholars cite multiple reasons: it marks the transition from day to night, it follows the breaking of fast in Ramadan, and it falls at a time dua is accepted (sunset). The Prophet said of Maghrib: 'It is the prayer of the righteous before you.' (Tirmidhi 3689)
Can I make personal dua at Maghrib time?
Yes. After the obligatory prayer and sunnah, the time between Maghrib and Isha is a quiet window for dhikr and personal dua. Scholars say the last hour before Isha is particularly blessed for supplication.
