Dua for Entering & Leaving Masjid – Arabic, Transliteration & Meaning

Entering the masjid is a moment of worship, and leaving the masjid is also an act taught directly by the Prophet Muhammad ﷺ. Islam gives special importance to the dua for entering the masjid and the dua for leaving the masjid so that every step into the House of Allah ﷻ becomes an act of remembrance. These authentic masjid duas guide a believer on what to say when entering the masjid and when leaving the masjid, making the experience spiritually complete.

When a Muslim approaches the mosque, the Sunnah is to recite the masjid entry dua—also known as dua upon entering masjid, entering masjid dua, masjid entrance dua, or simply dua for entering a mosque. This includes seeking Allah’s mercy, protection, and blessings before stepping inside. Similarly, the Sunnah masjid exit dua—also called dua for leaving the masjid, leaving masjid dua, masjid out dua, or dua for coming out of masjid—is recited when stepping out, asking Allah for His bounty and safety.

In this article, you’ll find authentic dua for entering and leaving the masjid, including their Arabic text, transliteration, and meaning, so you will always know what the dua for entering the masjid is, when to recite the mosque dua, and how to recite the dua for leaving the masjid in Arabic. Whether you are entering Masjid al-Haram, your local mosque, or any masjid in the world, these Sunnah duas—masjid entering dua and masjid exit dua—help you begin and end your worship with peace, clarity, and devotion.

What Is the Dua for Entering the Masjid?

The Prophet Muhammad ﷺ prescribed a succinct yet spiritually potent supplication (dua) for entering the masjid, emphasizing the importance of approaching this sacred space with humility and divine consciousness.

Dua for Entering Masjid Arabic Transliteration Translation

The authentic invocation, narrated in Sahih Muslim, is:

Arabic:

اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ

Transliteration:

Allāhumma iftaḥ lī abwāba raḥmatik

English Meaning:

O Allah, open for me the gates of Your mercy.

This powerful supplication centers the believer’s heart upon Allah’s mercy and prepares the soul for presence, stillness, and surrender. It transforms a simple step into the masjid into an act of intentional worship, anchoring the moment in the Sunnah and aligning one’s inner state with the rahmah of Allah ﷻ.

Through this dua, the worshipper acknowledges that every spiritual benefit gained from the masjid is not earned solely through effort but granted through divine compassion. Saying this dua consistently is a gateway to entering Allah’s house with the right heart and the right purpose. 

It echoes the humility of the dua for forgiveness and the dua for repentance recited in daily worship.

What Is the Dua for Leaving the Masjid?

Just as Islam instructs us to enter the masjid with reverence and remembrance, it also teaches us to depart with mindfulness, seeking Allah’s protection and provision. The Prophet Muhammad ﷺ legislated a specific supplication (dua) to recite when leaving the masjid, realigning the heart before returning to the outside world.

Dua for Leaving Masjid Arabic Transliteration Translation

The authenticated invocation, recorded in Sahih Muslim, is:

Arabic:

اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ

Transliteration:

Allāhumma innī as’aluka min faḍlik

English Meaning:

O Allah, I ask You from Your bounty.

This concise prophetic dua affirms that although the masjid is a sanctuary of mercy, life beyond its doors requires ongoing divine assistance. By uttering this supplication, the believer turns to Allah’s faḍl (bounty)—asking for provision, strength, and inner tranquility. This resonates with the dua for rizq (sustenance) and the dua for financial help that seek Allah’s bounty in worldly affairs.

In doing so, a simple step becomes an act of dhikr, reinforcing the truth that Allah’s support is essential—within and beyond His house.

What Is the Etiquette of Entering and Leaving the Masjid in Islam?

In Islam, entering and leaving the masjid is more than a physical act—it is a ritualized spiritual transition rooted in the Sunnah of the Prophet Muhammad ﷺ. These prophetic etiquettes (adab) reflect a believer’s humility, awe, and conscious reverence for the sacredness of Allah’s house.

When entering the masjid, the Sunnah is to:

  • Step in with the right foot
  • Recite the entry supplication, asking for Allah’s mercy and entry into His blessings
  • Preserve silence, avoiding unnecessary speech
  • Offer two rakahs of prayer (Tahiyyatul Masjid) before sitting

Similarly, one may recite the dua of Qunoot within salah, showing reverence and supplication.

When leaving, the etiquette includes:

  • Exiting with the left foot
  • Reciting the exiting dua, seeking protection and steadfastness
  • Departing with composure, maintaining dignity and mindfulness

These etiquettes are not cultural practices—they are based on authentic hadiths and upheld by the Sahabah, who witnessed and emulated the Prophet’s ﷺ conduct. By observing them, a Muslim transforms a simple moment of movement into an intentional act of worship, affirming that the masjid is a space of discipline, devotion, and divine presence.

What Is the Wisdom Behind These Duas?

The duas for entering and leaving the masjid are not routine phrases—they contain layered spiritual wisdom and act as anchors of intentional worship. When a believer steps into the masjid, the supplication “O Allah, open for me the gates of Your mercy” reorients the heart toward Allah’s rahmah, reminding us that every act of ibadah is possible only by His will. It cultivates humility, encourages inner stillness, and strengthens intentionality before prayer begins.

Upon departure, the dua “O Allah, I ask You from Your bounty” affirms the believer’s continued reliance on Allah ﷻ—even after completing worship. It becomes a heartfelt request for sustenance, guidance, and spiritual safeguarding as one returns to the demands of worldly life.

Together, these duas transform simple transitions into sacred rituals, fostering ritual mindfulness and continuous dhikr. They help the believer maintain a state of spiritual balance, anchoring their worship inside the masjid and their conduct beyond it in the remembrance of Allah. This balance mirrors the dua for protection outside the masjid and the dua for thanking Allah in daily gratitude.

Is It Necessary to Pray Two Rakahs (Tahiyyatul Masjid) Before Sitting?

Tahiyyatul Masjid, or the “greeting of the mosque”, is a Sunnah prayer taught by the Prophet Muhammad ﷺ to honor the sacredness of the masjid. It consists of two rakahs offered before sitting down and is considered a spiritual gesture of reverence and preparation for worship.

This practice is affirmed by authentic hadiths, including a narration where the Prophet ﷺ instructed a companion to stand and perform two rakahs before sitting. Based on this, scholars regard Tahiyyatul Masjid as a Sunnah Muakkadah—strongly recommended but not obligatory. It holds great virtue and reward for those who observe it, and its spiritual etiquette is often complemented with other Sunnah-based invocations such as the Friday Dua recited during Jumu’ah prayer.

There are valid exceptions:

  • If one enters the masjid during prohibited prayer times (e.g., sunrise, sunset)
  • When physically exhausted or ill
  • When joining a congregational prayer, which fulfills the same intention

Through this short yet meaningful act, a believer demonstrates adab toward the house of Allah, beginning their time in the masjid with intentionality, spiritual presence, and decorum.

FAQs – Dua for Entering and Leaving Masjid

It’s completely fine to read the duas from your phone or a small card when you’re still learning. What truly matters is the sincerity in your heart—your ikhlāṣ. Allah ﷻ sees your intention. Over time, try to memorize them little by little, so they become part of your daily habit. That way, every visit to the masjid becomes more natural and filled with quiet remembrance.
Yes, without a doubt. These beautiful duas are for every Muslim—brother or sister. The Prophet Muhammad ﷺ taught them as a way for all of us to stay connected to Allah ﷻ when coming to His house. Whenever a woman visits the masjid and says these duas, she too receives reward and draws closer to her Lord.
No, there’s no set number of times to repeat it. The Sunnah is simply to say the dua once when you enter and once when you leave. It’s not about counting—it’s about remembering Allah ﷻ in that moment and walking through the masjid doors with the right intention.
Yes, your prayer is still valid even if you forget. These duas are Sunnah—not a requirement for your ṣalāh to be accepted. But when you remember to say them, they bring extra blessings and help you observe the proper adab (etiquette) when entering the house of Allah ﷻ. So don’t worry, but do keep trying to remember.
Yes, it is completely permissible to write the masjid duas and keep them on paper or mobile devices for easy access. Islamic scholars permit the use of written aids as long as they are treated respectfully. Many apps, posters, and masjids provide these duas to encourage memorization and regular practice.
Yes, the rewards of reciting the duas for entering and exiting the masjid are supported by authentic hadiths.
The Prophet Muhammad ﷺ associated these duas with seeking mercy (rahmah) upon entry and bounty (faḍl) upon exit. These supplications are part of the daily Sunnah routine and carry both reward and spiritual protection.
No, the duas for entering and leaving the masjid remain the same regardless of time or occasion.
Whether on Jumu‘ah, Eid, or a regular day, the Prophetic wordings do not change. These duas are timeless and meant to be universally recited when visiting any masjid.
Yes, both masjid entry and exit duas are found in multiple authentic hadith collections, including Sahih Muslim. Their presence across trusted compilations, and their acceptance by all four Sunni madhhabs, makes them widely practiced and theologically sound.
Yes, there is a difference—these duas are generally reserved for entering a proper masjid, not a temporary musalla. A masjid is a consecrated structure designated for daily prayer, while a musalla is a flexible or outdoor prayer space (e.g., Eid grounds). Most scholars restrict these duas to masjids with established sacred status.

Mohammed Basheer

Mohammed Basheer is the founder of Sukoonly.com, an Islamic blog focused on duas, prophetic healing, and Qur’anic wisdom. He writes with sincerity and spiritual depth for seekers around the world.