بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ
بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ
✦ Masnoon Dua · Verified

Dua for Entering Masjid

The authentic supplication recited upon entering the mosque — with Arabic text, transliteration, translation, and hadith reference.

2 Authentic Duas
Sahih Source Grade
Daily Occasion
Sunnah Practice
🕌

The Dua for Entering Masjid


When a Muslim approaches the masjid (mosque), it is a confirmed Sunnah (mustahabb) to recite a specific dua before stepping inside with the right foot first. The Prophet Muhammad ﷺ taught this supplication to ask Allah ﷻ to open the gates of His mercy.

🕌 Dua 1 — Upon Entering the Mosque 📚 Abu Dawud · Ibn Majah
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Allāhumma iftaḥ lī abwāba raḥmatik
“O Allah, open for me the gates of Your mercy.”
📖 Narrated by Abu Usayd al-Ansari (رضي الله عنه) that the Prophet ﷺ said: “When any one of you enters the mosque, let him say: ‘Allahumma iftah li abwaba rahmatik.'”Sahih Muslim 713a & Abu Dawud 465
🕌 Dua 2 — Extended Version (Recommended) 📚 Ibn Majah · Sahih
بِسْمِ اللَّهِ، وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُولِ اللَّهِ، اللَّهُمَّ اغْفِرْ لِي ذُنُوبِي، وَافْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Bismillāh, was-ṣalātu was-salāmu ʿalā Rasūlillāh, Allāhumma-ghfir lī dhunūbī, waftaḥ lī abwāba raḥmatik
“In the name of Allah, and peace and blessings be upon the Messenger of Allah. O Allah, forgive my sins and open for me the gates of Your mercy.”
📖 Narrated by Fatimah bint Muhammad (رضي الله عنها). — Ibn Majah 771  |  Graded Hasan Sahih by Al-Albani (رحمه الله)
📋

How to Enter the Masjid — Step by Step


Following the Sunnah of the Prophet ﷺ when entering the mosque involves a sequence of actions. This infographic summarises the complete etiquette.

✦ Sunnah Etiquette of Entering the Mosque ✦
1

Cleanliness

Ensure you have wudu (ablution). The masjid is the House of Allah ﷻ.

2

Right Foot First

Step inside leading with your right foot — a universal Sunnah of entering.

3

Recite the Dua

Say “Allahumma iftah li abwaba rahmatik” upon crossing the threshold.

4

Send Salawat

Send blessings upon the Prophet ﷺ — included in Dua 2 above.

5

Tahiyyatul Masjid

Pray two rak’ahs of Tahiyyatul Masjid before sitting — do not sit immediately.

🕰️

When to Recite the Dua for Entering Masjid


This dua is recited every time you enter a mosque — for any of the five daily prayers, Jumu’ah (Friday prayer), voluntary prayers, or for Islamic classes and gatherings.

🌅

Fajr Prayer

At dawn — the most virtuous prayer of the day.

🌤️

Dhuhr Prayer

The midday prayer after the sun passes its zenith.

🌇

Asr Prayer

The afternoon prayer — highly emphasised in the Quran.

🌆

Maghrib & Isha

Evening and night prayers at the mosque.

🕌

Jumu’ah

Friday prayer — a weekly obligation for Muslim men.

📚

Islamic Class

Attending halaqahs, lectures, or Quran circles.

Benefits & Virtues of This Dua


Reciting the dua for entering the masjid is far more than a verbal formula. The scholars of Islam highlight several profound spiritual benefits rooted in the Quran and Sunnah.

🚪

Gates of Mercy Opened

The supplication literally asks Allah ﷻ to open the doors of His limitless mercy — directly fulfilled as a promise from this dua.

🤍

Following the Sunnah

Emulating the Prophet ﷺ earns immense reward. Every small Sunnah observed is an act of love for Allah ﷻ.

🙏

Sins Forgiven

The extended dua (Dua 2) explicitly asks for forgiveness of sins — transforming a simple act into a moment of spiritual cleansing.

🌿

Mindfulness of Allah

Reciting this dua anchors your intention — reminding you that you are entering the House of Allah ﷻ with consciousness (taqwa).

📿

Angels Record Good Deeds

Visiting the mosque itself earns tremendous reward; adding this dua multiplies the goodness recorded by the angels.

Barakah in the Prayer

Beginning your time in the masjid with this dua sets a blessed tone, increasing focus and spiritual presence in Salah.

🌟 Did You Know? The masjid is described in the Quran as “the houses which Allah has permitted to be raised” (Surah Al-Nur 24:36). Entering this sacred space with the correct dua and intention elevates an ordinary visit into an act of worship.
📋

Masjid Etiquette — Do’s and Don’ts


EtiquetteRecommended / ProhibitedEvidence
Enter with right foot first✔ SunnahGeneral Sunnah (Bukhari 426)
Recite the entry dua✔ MustahabbMuslim 713a
Pray Tahiyyatul Masjid (2 rak’ah)✔ Sunnah Mu’akkadahBukhari 444, Muslim 714
Lower your voice✔ RequiredGeneral adab of the masjid
Eating pungent food before entry✖ DislikedBukhari 853 (onion / garlic)
Making commercial transactions inside✖ ProhibitedTirmidhi 1321
Exit with left foot & recite exit dua✔ SunnahMuslim 713a
Stepping over people to find a spot✖ DislikedAbu Dawud 1118
🚶

Dua for Leaving the Masjid


Just as there is a dua for entering, there is a corresponding supplication for leaving the masjid. You exit with the left foot first and recite:

اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ
Allāhumma innī as’aluka min faḍlik
“O Allah, I ask You from Your bounty.”
📖 Sahih Muslim 713b — Narrated by Abu Usayd al-Ansari (رضي الله عنه)
Important: When leaving, you step out with the left foot first — the opposite of when entering. This mirrors the general Sunnah: right foot for noble entries (masjid, home), left foot for exiting or entering unclean places.

Frequently Asked Questions


The dua for entering the masjid is: Allahumma iftah li abwaba rahmatik — meaning “O Allah, open for me the gates of Your mercy.” This is narrated in Sahih Muslim (713a) and was directly taught by the Prophet Muhammad ﷺ. An extended version adding forgiveness of sins is found in Ibn Majah (771).
You enter the masjid with your right foot first. This is a confirmed Sunnah of the Prophet ﷺ. Conversely, when leaving the masjid, you step out with the left foot first.
No, it is not mandatory (fard). It is classified as mustahabb (recommended/desirable), meaning it earns great reward when performed but is not sinful to omit. However, given the ease of the supplication and its immense spiritual benefits, scholars strongly encourage making it a consistent habit.
You do not need wudu specifically to recite a dua, as dhikr and supplication can be made in any state. However, you should have wudu before entering the masjid to pray Salah or Tahiyyatul Masjid, which is the Sunnah upon entering.
Yes, absolutely. The dua for entering the masjid is recommended for all Muslims — men, women, and children. The hadith from Sahih Muslim is general in its address and scholars unanimously agree it applies to all believers who enter a mosque.
After entering the masjid, the Prophet ﷺ recommended praying Tahiyyatul Masjid — two rak’ahs of voluntary prayer as a “greeting to the mosque.” The Prophet ﷺ said: “When one of you enters the mosque, he should not sit until he has prayed two rak’ahs.” (Bukhari 444, Muslim 714). This is a highly emphasised Sunnah.
🔗

Complete your masjid worship with these related Islamic supplications from our verified collection:

🌐

Authoritative Islamic References


Verify and deepen your knowledge through these globally trusted Islamic scholarly sources:

🌿

Summary — Key Takeaways


  • Dua 1: Allahumma iftah li abwaba rahmatik — from Sahih Muslim. Recite upon stepping inside with your right foot.
  • Dua 2 (Extended): Begins with Bismillah and Salawat, asks for forgiveness — from Ibn Majah (Hasan Sahih).
  • ✅ After entering, pray Tahiyyatul Masjid (2 rak’ahs) before sitting.
  • ✅ Upon leaving, step out left foot first and say: Allahumma inni as’aluka min fadlik.
  • ✅ This dua applies to all Muslims — men, women, and children — at any time of entry.
  • ✅ The status of this dua is Mustahabb (highly recommended) — not obligatory, but enormously rewarding.

Content verified against authentic hadith collections. All Arabic text and transliterations cross-checked with primary sources.
For more verified duas, visit DuaForAll.com — your trusted source for authentic Islamic supplications. | Masnoon Duas · Daily Duas · Dhikr & Tasbeeh