When any of you enters the mosque, let him send peace upon the Prophet and say: Allāhumma iftahli abwāba rahmatik (O Allah, open for me the gates of Your mercy)
Narrator in the source: Abu Hurayrah reported: I heard the Messenger of Allah say:
Abu Hurayrah (may Allah be pleased with him) reported that the Messenger of Allah (ﷺ) said: "When any of you enters the mosque, let him send peace upon the Prophet and say: Allāhumma iftahli abwāba rahmatik (O Allah, open for me the gates of Your mercy). And when he leaves, let him send peace upon the Prophet and say: Allāhumma i‘simni min ash-shaytān ar-rajīm (O Allah, protect me from the accursed devil)." In another narration by Al-Hākim: "When he leaves, let him send peace upon the Prophet (ﷺ) and say: Allāhumma ajirni min ash-shaytān ar-rajīm (O Allah, save me from the accursed devil)."- Grade in the source
- Hasan
- Reported by
- Narrated by Ibn Mᾱjah and Al-Hᾱkim
- Source entry
- HadeethEnc · 65418 ↗
Original Arabic wording
عَنْ أَبِي هُرَيْرَةَ رَضيَ اللهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِذَا دَخَلَ أَحَدُكُمْ المَسْجِدَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ وَلْيَقُلْ: اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ، وَإِذَا خَرَجَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ وَلْيَقُلْ: اللَّهُمَّ اعْصِمْنِي مِنْ الشَّيْطَانِ الرَّجِيمِ»، وَلِلْحَاكِمِ: «وَإِذَا خَرَجَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ وَلْيَقُلْ: اللَّهُمَّ أَجِرْنِي مِنَ الشَّيْطَانِ الرَّجِيمِ».Understand this hadith
The Prophet (ﷺ) guided the Muslim, when entering the mosque, to send peace and blessings upon the Prophet (ﷺ) by saying: Allāhumma salli wa sallim ‘ala Muhammad (O Allah, send Your blessings and peace upon Muhammad), and then to say: Allāhumma iftahli abwāba rahmatik (O Allah, open for me the gates of Your mercy). And when he leaves, he should send peace upon the Prophet and say: Allāhumma i‘simni min ash-shaytān ar-rajīm (O Allah, protect me from the accursed devil). In another narration by Al-Hākim: And say: Allāhumma ajirni min ash-shaytān ar-rajīm (O Allah, save me from the accursed devil).
Lessons from the hadith
- It is recommended to say this supplication upon entering the mosque and upon leaving it.
- This supplication is to be generally recited in all mosques, including the Sacred Mosque.
- The specific mention of mercy when entering and seeking protection from the devil when exiting: The one entering is engaged in what brings him closer to Allah and His Paradise, so it is fitting to mention mercy. When exiting, he ventures into the world with its distractions and preoccupations, so it is appropriate to ask Allah for protection and preservation from the devil.
References (original Arabic)
سنن ابن ماجه (1/ 494) (773). المستدرك على الصحيحين للحاكم (1/ 325). شرح أبي داود للعيني (2/ 374). شرح سنن أبي داود للعباد (66/ 3). مرشد ذوي الحجا والحاجة إلى سنن ابن ماجه والقول المكتفى على سنن المصطفى (5/ 297).