Dua for Entering and Leaving Masjid
What is the dua for entering the masjid? When you enter a mosque, say: “O Allah, open for me the doors of Your mercy.” When you leave, say: “O Allah, indeed I ask You from Your bounty.” Both duas are reported in Sahih Muslim 713, and the Sunnah adds one step before the entering dua: send blessings on the Prophet (peace be upon him) first. This guide gives the dua for entering masjid and the dua for leaving it in Arabic with full transliteration and meaning, the correct order, and the Sunnah steps for entering and leaving the mosque.
Key Points
- The entering dua is “O Allah, open for me the doors of Your mercy” — Allaahumma-ftah li abwaaba rahmatik (Sahih Muslim 713a).
- The leaving dua is “O Allah, indeed I ask You from Your bounty” — Allaahumma innee as’aluka min fadlik (Sahih Muslim 713a).
- Send blessings on the Prophet (peace be upon him) FIRST, then say the entering dua (Sunan Abi Dawud 465; Sunan Ibn Majah 772, Sahih).
- Enter with your right foot, and leave with your left foot, following the Sunnah for entering and leaving honourable places.
- Mosques are the most beloved places to Allah (Sahih Muslim 671) — enter them with respect, in a state of cleanliness, and without disturbing those who are praying.
- The leaving dua is also the dua for seeking Allah’s bounty in your daily work and provision.
What Is the Dua for Entering the Masjid?
When you enter the mosque, step in with your right foot and say:
Arabic:
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Transliteration: Allaahumma-ftah li abwaaba rahmatik.
Translation: “O Allah, open for me the doors of Your mercy.” (Sahih Muslim 713a)
You are asking Allah to open the doors of His mercy for you as you enter His house — mercy for your prayer, your worship and your time in the mosque.
What Is the Dua for Leaving the Masjid?
When you leave the mosque, step out with your left foot and say:
Arabic:
اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ
Transliteration: Allaahumma innee as’aluka min fadlik.
Translation: “O Allah, indeed I ask You from Your bounty.” (Sahih Muslim 713a)
As you go back out into the world, you ask Allah for His bounty — His provision, His goodness and His blessings in your work and your daily life. The same words can be said whenever you set out to seek Allah’s bounty.
What Is the Correct Order?
The correct order is: first send blessings on the Prophet (peace be upon him), and then say the entering dua. The narration in Sunan Abi Dawud (465) gives the sequence as: “In the name of Allah, and blessings and peace be upon the Messenger of Allah. O Allah, open for me the doors of Your mercy.” Sunan Ibn Majah (772, Sahih) reports the same sequence — blessings on the Prophet first, then the dua.
Note: an earlier version of this page had the order the other way round — it said to say the dua first and then send blessings on the Prophet. That was incorrect, and it has been corrected here: the blessings come first.
Abu Dawud 466 (Hasan) adds another narration about entering the mosque: when the Prophet (peace be upon him) entered the mosque, he would say: “I seek refuge in Allah, the Magnificent, and in His noble Face, and in His eternal power, from the accursed Satan.”
What Is the Source of These Duas?
Both duas come from a single hadith in Sahih Muslim (713a), in which the Prophet (peace be upon him) taught his followers what to say when entering and leaving the mosque:
Arabic:
إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيَقُلِ اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ وَإِذَا خَرَجَ فَلْيَقُلِ اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ
Transliteration: Idhaa dakhala ahadukumu-l-masjida falyaquli-llaahumma-ftah li abwaaba rahmatik, wa idhaa kharaja falyaquli-llaahumma innee as’aluka min fadlik.
Translation: “When any one of you enters the mosque, he should say: ‘O Allah, open for me the doors of Your mercy’; and when he steps out he should say: ‘O Allah, I beg of You Your bounty.’” (Sahih Muslim 713a)
The same duas are also reported in Sunan Abi Dawud (465) and Sunan Ibn Majah (772), which add the step of sending blessings on the Prophet (peace be upon him) before the entering dua.
What Else Should I Do When I Enter the Masjid?
Enter with your right foot, following the Sunnah of beginning with the right in honourable matters, and leave with your left foot. Greet those present with salam if they are not praying, keep your voice low, and silence your phone so that you do not disturb those who are praying.
Before you sit down, pray two rak’ahs of tahiyyat al-masjid, the greeting of the mosque. The Prophet (peace be upon him) said: “When one of you enters the mosque, he should not sit down until he has prayed two rak’ahs.” (Sahih al-Bukhari 444) This applies whenever you are able to pray them.
Remember the honour of the place you are entering. The Prophet (peace be upon him) said: “The most beloved places to Allah are the mosques, and the most disliked places to Allah are the markets.” (Sahih Muslim 671) Enter in a state of cleanliness, with respect, and with the intention of worship.
For the dua to recite when you hear the call to prayer, see our guide to the dua after adhan. And for another short, powerful supplication for times of hardship, see Dua Yunus.
Frequently Asked Questions
What is the dua for entering the masjid?
When you enter the masjid, say: “O Allah, open for me the doors of Your mercy.” In Arabic: اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ (Allaahumma-ftah li abwaaba rahmatik). It is reported in Sahih Muslim 713a.
What is the dua for leaving the masjid?
When you leave the masjid, say: “O Allah, indeed I ask You from Your bounty.” In Arabic: اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ (Allaahumma innee as’aluka min fadlik). It is reported in Sahih Muslim 713a.
Should I send blessings on the Prophet before the entering dua?
Yes. Send blessings on the Prophet (peace be upon him) first, then say the entering dua. The sequence is given in Sunan Abi Dawud 465 and Sunan Ibn Majah 772 (Sahih).
Which foot do I enter the masjid with?
Enter the masjid with your right foot, and leave with your left foot, following the Sunnah for entering and leaving honourable places.
What is the source of these duas?
Both duas are reported in Sahih Muslim 713a, and the same duas appear in Sunan Abi Dawud 465 and Sunan Ibn Majah 772.
Should I pray two rak’ahs when I enter the masjid?
Yes. Pray two rak’ahs of tahiyyat al-masjid, the greeting of the mosque, before sitting down, if you are able to. The Prophet (peace be upon him) said: “When one of you enters the mosque, he should not sit down until he has prayed two rak’ahs.” (Sahih al-Bukhari 444)
Conclusion
Two short duas cover the whole visit to the mosque: mercy on the way in, and bounty on the way out. Learn them in Arabic, understand what they mean, and say them every time you enter and leave — with blessings on the Prophet (peace be upon him) first, as the Sunnah teaches.
Sources: Sahih Muslim; Sunan Abi Dawud; Sunan Ibn Majah; Sahih al-Bukhari
