Skip to content

Dhikr on Entering and Leaving the Mosque

2 hadiths · with narrator and grade · from HadeethEnc.com

Dhikr on Entering and Leaving the Mosque

This page lists 2 hadiths on dhikr on entering and leaving the mosque, each with its Arabic text, translation, source and grade. The hadith text, translation and explanation are reproduced exactly from the HadeethEnc.com Encyclopedia of Translated Prophetic Hadiths, with a link to each original entry so you can check it.

Updated
Source
HadeethEnc.com

When the Prophet (may Allah's peace and blessings be upon him) entered the mosque, he would say: "a‘ūdhu billāhi al-‘azhīm wa biwajhihi al-karīm wa sultānihi al-qadīm min ash-shaytān ar-rajīm" (I seek refuge in Allah, the Majestic, and in His noble Countenance, and in His eternal dominion, from the accursed devil)

Hadith 1

عن عبد الله بن عمرو بن العاص رضي الله عنهما: عن النبي صلى الله عليه وسلم أنه كان إذا دخل المسجد قال: «أعوذ بالله العظيم، وبوجهه الكريم، وسلطانه القديم، من الشيطان الرَّجِيم»، قال: أَقَطُّ؟ قلت: نعم، قال: فإذا قال ذلك قال الشيطان: حُفِظَ منِّي سائر اليوم.

‘Abdullāh ibn ‘Amr ibn al-‘Ās (may Allah be pleased with him) reported: When the Prophet (may Allah's peace and blessings be upon him) entered the mosque, he would say: "a‘ūdhu billāhi al-‘azhīm wa biwajhihi al-karīm wa sultānihi al-qadīm min ash-shaytān ar-rajīm" (I seek refuge in Allah, the Majestic, and in His noble Countenance, and in His eternal dominion, from the accursed devil) He said: "Is that all?" I said: 'Yes.' He said: "And when he says that, the devil says: "He is protected from me for the rest of the day."

Reported by: Narrated by Abu Dāwūd Grade: Hasan HadeethEnc.com #8294

Explanation

When the Prophet (may Allah's peace and blessings be upon him) entered the mosque, he would say: "I seek refuge with Allah, the Majestic" i.e., I resort and turn for help to Allah and His attributes. "and in His noble Countenance" i.e., the Generous Giver. "and in His eternal dominion" i.e., His dominance, power, and the ability to vanquish anyone of His creation He wills. 'eternal' i.e., permanent, timeless. "from the accursed devil", who is banished and expelled from the mercy of Allah. i.e., O Allah, protect me from his whisperings, his temptations, his steps, his ideas, his insinuations, and his misguidance, for he is the one who causes misguidance and leads to temptation and ignorance. It was said to ‘Abdullāh ibn ‘Amr: "Is that all?" i.e., did the Prophet (may Allah's peace and blessings be upon him) say that only? He said: Yes. If a person says this supplication upon entering the mosque, the devil will say: He has protected himself from me the whole time, during the day and night.

HadeethEnc.com #8294

When any of you enters the mosque, let him say: 'Allahumma iftah li abwāba rahmatik' (O Allah, open for me the gates of Your mercy). And when he leaves, let him say: 'Allahumma inni as’aluka min fadlik' (O Allah, I ask You of Your bounty)

Hadith 2

عَنْ ‌أَبِي حُمَيْدٍ أَوْ عَنْ ‌أَبِي أُسَيْدٍ قَالَ: قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: «إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيَقُلِ: اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ، وَإِذَا خَرَجَ فَلْيَقُلِ: اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ».

Abu Humayd or Abu Usayd reported: The Messenger of Allah (may Allah’s peace and blessings be upon him) said: "When any of you enters the mosque, let him say: 'Allahumma iftah li abwāba rahmatik' (O Allah, open for me the gates of Your mercy). And when he leaves, let him say: 'Allahumma inni as’aluka min fadlik' (O Allah, I ask You of Your bounty)."

Reported by: Narrated by Muslim Grade: Authentic HadeethEnc.com #65092

Explanation

The Prophet (may Allah's peace and blessings be upon him) directed his Ummah to the supplication to be said upon entering the mosque: "O Allah, open for me the gates of Your mercy." He asks Allah Almighty to provide him with the means to attain His mercy. And when he wants to leave, he should say: "O Allah, I ask You of Your bounty." He asks Allah for His bounty and more of His benevolence in providing lawful sustenance.

HadeethEnc.com #65092

Frequently asked questions

How many hadiths about Dhikr on Entering and Leaving the Mosque are on this page?

2 hadiths, each with its Arabic text, translation, narrator and grade.

Where do the hadiths and their translation come from?

From HadeethEnc.com (Encyclopedia of Translated Prophetic Hadiths). Every hadith links to its original page.

Is the hadith text changed in any way?

No. The Arabic text, translation, narrator, grade and explanation are copied exactly from the source.

Sources

  • HadeethEnc.com · HadeethEnc.com, Encyclopedia of Translated Prophetic Hadiths (API v1), retrieved Nov 10, 2026. Arabic text, translation, narrator, grade and explanation are copied without changes.