Dua When Entering the Mosque

3 Sunnahs at the House of Allah

A Muslim man seen from behind at the arched entrance of a neighbourhood mosque, reflecting the Dua When Entering the Mosque.

The mosque is the most beloved of places to Allah, a house built for His worship and remembrance. The dua when entering the mosque prepares the heart to step into this sacred space, asking Allah to fling open the very gates of His mercy. The Prophet Muhammad (pbuh) taught this beautiful supplication along with simple manners that honour the house of Allah.

This guide explains the dua when entering the mosque, the meaning of asking for the gates of mercy, and three sunnahs of arriving at the mosque, so that every visit to the house of Allah begins with reverence, humility and hope.

The Meaning of the Dua When Entering the Mosque

A still-life of rows of shoes neatly arranged on a rack at a mosque entrance, illustrating the Dua When Entering the Mosque.

The dua when entering the mosque asks Allah to open the gates of His mercy, a request perfectly suited to the place. The mosque is where the believer comes to pray, to seek forgiveness, and to draw near to Allah, and so the heart enters longing for the mercy that flows most abundantly in the house of Allah. The Prophet (pbuh) taught that the believer should first send salah upon him, then step in with the right foot, and then make this supplication.

To ask for the gates of mercy to be opened is to come to the mosque as a hopeful guest at the door of the Most Generous. The one who enters seeking mercy is never turned away, for the house of Allah is built upon His mercy and the believer is invited to draw from it freely. The Prophet (pbuh) taught that the angels seek forgiveness for the one who waits in the mosque for prayer, so the very air of the place is filled with mercy descending upon those who come seeking it.

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

Allahumma-ftah li abwaba rahmatik

O Allah open for me the gates of Your mercy

The Prophet | Muslim

Three Sunnahs of Entering the Mosque

The Prophet (pbuh) taught gentle manners for arriving at the mosque that prepare the heart for worship and honour the sacredness of the place.

  1. Step in with the right foot, as the Prophet (pbuh) entered places of honour right foot first.
  2. Send salah upon the Prophet (pbuh) and then ask Allah to open the gates of His mercy.
  3. Pray two units of greeting to the mosque before sitting down, honouring the house of Allah.

إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيَرْكَعْ رَكْعَتَيْنِ قَبْلَ أَنْ يَجْلِسَ

Idha dakhala ahadukumul-masjida falyarka‘ rak‘atayni qabla an yajlis

Whoever enters the mosque let him pray two units before sitting

The Prophet | Bukhari

Entering the House of Allah with Reverence

Close view of a Muslim man's hands and the rows of shoes neatly arranged during the Dua When Entering the Mosque.

The mosque deserves to be entered with a heart that is awake and humble, leaving behind the distractions of the world at its threshold. The dua when entering the mosque trains the believer to arrive not absent-mindedly but with longing, ready to receive the mercy of Allah. The Quran describes the mosques as houses that Allah has permitted to be raised, where His name is remembered morning and evening.

This supplication pairs naturally with the dua when leaving the mosque, in which the believer asks Allah for His bounty as he returns to the world. Together they frame every visit to the house of Allah, entering in hope of mercy and leaving in search of His provision.

Stepping into the house of Allah with a single supplication can open the heart to His mercy before the prayer even begins. Learn the daily duas with us on YouTube, where the supplications are recited aloud, on TikTok for a reminder at the mosque door, and on Pinterest where readers share how they prepare their hearts for worship.

Frequently Asked Questions

What is the dua when entering the mosque?

The dua when entering the mosque is Allahumma-ftah li abwaba rahmatik, O Allah open for me the gates of Your mercy. The Prophet (pbuh) taught saying it after sending salah upon him and stepping in with the right foot.

Which foot do I enter the mosque with?

The sunnah is to enter the mosque with the right foot, since the Prophet (pbuh) used the right foot for places of honour. The left foot is used when leaving, reversing the order out of respect for the house of Allah.

Do I pray before sitting in the mosque?

Yes, the Prophet (pbuh) taught that whoever enters the mosque should pray two units of greeting to the mosque before sitting down. It honours the sacredness of the place and is a beloved sunnah of arrival.

Why ask for the gates of mercy when entering?

The mosque is the house of worship and forgiveness, where the mercy of Allah flows most abundantly. Asking for the gates of mercy to be opened suits the place perfectly and prepares the heart to draw near to Allah.

What do I say when leaving the mosque?

On leaving the believer says Allahumma inni as’aluka min fadlik, O Allah I ask You of Your bounty. Entering seeks the mercy of Allah, and leaving seeks His provision as one returns to daily life.

What if the prayer is starting as I enter?

If the congregational prayer is beginning, the believer joins it directly rather than praying the two greeting units first. At other times the two units of greeting to the mosque are a confirmed sunnah before sitting down.

Share This Dua:
Scroll to Top