The Book On The Mosques And The Congregations · Sunan Ibn Majah

Sunan Ibn Majah, hadith 773

Narrated by Abu Hurairah. Arabic text with our own translation and explanation.

Sahih (authentic)Book: The Book On The Mosques And The Congregations
سنن ابن ماجه
Who narrated it?

From Ibn Majah back to the Prophet ﷺ

Sahih (authentic)
  1. 1Muhammad ibn Bashsharnarrated it to Ibn Majahمُحَمَّدُ بْنُ بَشَّارٍ
  2. 2Abu Bakr al‑Hanafiأَبُو بَكْرٍ الْحَنَفِيُّ
  3. 3Ad‑Dahhak ibn Uthmanالضَّحَّاكُ بْنُ عُثْمَانَ
  4. 4Sa'id al‑Maqburiسَعِيدٌ الْمَقْبُرِيُّ
  5. 5Abu Hurayraأَبِي هُرَيْرَةَ
  6. 6The Messenger of Allah ﷺرَسُولُ اللَّهِ ﷺ

Order as it appears in the Arabic text of this narration. The names have been transliterated from Arabic into Latin script.

The narration

Arabic text

حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا أَبُو بَكْرٍ الْحَنَفِيُّ، حَدَّثَنَا الضَّحَّاكُ بْنُ عُثْمَانَ، حَدَّثَنِي سَعِيدٌ الْمَقْبُرِيُّ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ ‏ "‏ إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ ـ صلى الله عليه وسلم ـ وَلْيَقُلِ اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ وَإِذَا خَرَجَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ وَلْيَقُلِ اللَّهُمَّ اعْصِمْنِي مِنَ الشَّيْطَانِ الرَّجِيمِ ‏"‏ ‏.‏

Translation

The translation in this language is coming soon; the explanation is provided below.

Translation and explanation by Khutba World, translated from Arabic.

Core message

When entering, ask for Allah’s mercy, and when leaving, ask for protection.

Key terms explained
Gates of Your mercy

A supplication asking Allah for His mercy, blessings, and guidance.

The accursed Satan

Satan, whom Allah’s judgment has removed from His mercy.

Scholarly insights

Classical scholars derive from this narration that supplications are recommended when entering and leaving the mosque. They emphasize that the visitor asks Allah for mercy upon entering and for protection from Satan upon leaving. Sending greetings upon the Prophet ﷺ is part of the etiquette mentioned.

Lessons for today
  1. Say the transmitted supplication asking for Allah’s mercy when entering the mosque.
  2. Ask for protection from Satan when leaving the mosque.
  3. Make entering and leaving the mosque mindful moments of remembrance of Allah.
الْحَدِيثُ الشَّرِيفُ

A hadith every day, in your language

The app gives you a hadith with an explanation every day, also as a widget on your phone. Free to use.