Daily life

Dua for entering the masjid

Updated · From Hisnul Muslim

Short answer

When you enter the masjid, step in with your right foot, then seek refuge with Allah from the accursed devil, say "In the name of Allah, and prayers and peace be upon the Messenger of Allah", and say "O Allah, open the gates of Your mercy for me". These come from Muslim 713, Abu Dawud 465 and 466, and Ibn Majah 771.

Keep every du'a from Hisnul Muslim with you, with Arabic and meaning, in the free Tasleem app. Get the app →

The dua

(يَبْدَأُ بِرِجْلِهِ اليُمْنَى)، ويقول: (أَعُوْذُ بِاللَّهِ الْعَظِيمِ، وَبِوَجْهِهِ الْكَرِيمِ، وَسُلْطَانِهِ الْقَدِيمِ، مِنَ الشَّيْطَانِ الرَّجِيمِ)، (بِسْمِ اللَّهِ, وَالصَّلاةُ). [وَالسَّلامُ عَلَى رَسُوْلِ اللَّهِ]، (اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ).

"(Enter with your right foot)(١), and then say: (I take refuge with Allah, The Supreme and with His Noble Face, and His eternal authority from the accursed devil.)(٢) , (In the name of Allah, and prayers)(٣)and peace be upon the Messenger of Allah, (O Allah, open the gates of Your mercy for me)(٥)."

(Muslim 713; Abu Dawud 465 and 466; Ibn Majah 771; right foot: al-Hakim, per Hisnul Muslim. See the note on each part below)

Where each part comes from. (1) Entering with the right foot: Hisnul Muslim cites al-Hakim and al-Bayhaqi, with al-Albani grading it hasan in as-Silsilah as-Sahihah 2478. (2) The refuge "I take refuge with Allah, the Supreme…": Abu Dawud 466, sahih per al-Albani. (3)–(4) "In the name of Allah, and prayers and peace be upon the Messenger of Allah": Ibn Majah 771 and Abu Dawud 465, both sahih per al-Albani. (5) "O Allah, open the gates of Your mercy for me": Muslim 713.

When to say it

Say it at the door as you step in with your right foot. The order in Hisnul Muslim is: the refuge from the devil, then Bismillah and peace on the Prophet ﷺ, then the request for mercy.

The hadith behind it

Asking for mercy. Abu Usayd reports that the Prophet ﷺ said: when one of you enters the masjid, let him say "O Allah, open for me the gates of Your mercy", and when he leaves, "O Allah, I ask You of Your bounty" (Muslim 713).

Peace on the Prophet ﷺ. In Abu Dawud 465 (sahih per al-Albani), Abu Usayd's narration begins with sending blessings on the Prophet ﷺ before asking for mercy. Fatimah, the Prophet's daughter, reports that on entering he said "In the name of Allah, and peace be upon the Messenger of Allah", asked for forgiveness of his sins and for the gates of mercy to be opened (Ibn Majah 771, sahih per al-Albani).

Refuge from the devil. 'Uqbah ibn Muslim was told that the Prophet ﷺ would seek refuge with Allah the Magnificent, His noble Face and His eternal authority from the accursed devil when entering the masjid. He said that when someone says it, the devil says: he is protected from me for the rest of the day (Abu Dawud 466, sahih per al-Albani).

Frequently asked questions

What is the shortest dua for entering the masjid?

"O Allah, open the gates of Your mercy for me" (Muslim 713).

What is the virtue of the refuge from the devil?

In Abu Dawud 466, the devil says that the one who says it is protected from him for the rest of the day.

Which foot do I enter with?

The right foot. Hisnul Muslim cites al-Hakim for this, graded hasan by al-Albani.

In Tasleem

Tasleem's Duas section has this du'a from Hisnul Muslim, with Arabic and meaning, alongside the morning and evening adhkar.

Sources