Hadith 773

حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ ، حَدَّثَنَا أَبُو بَكْرٍ الْحَنَفِيُّ ، حَدَّثَنَا الضَّحَّاكُ بْنُ عُثْمَانَ ، حَدَّثَنِي سَعِيدٌ الْمَقْبُرِيُّ ، عَنْ أَبِي هُرَيْرَةَ ، أَنَّ ّرَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ : " إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، وَلْيَقُلْ : اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ ، وَإِذَا خَرَجَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، وَلْيَقُلْ : اللَّهُمَّ اعْصِمْنِي مِنَ الشَّيْطَانِ الرَّجِيمِ " .
´It was narrated from Abu Hurairah that:` The Mesenger of Allah said: "When anyone of enters the mosque, let him send peace upon the Prophet, then let him say: 'Allahumma aftahli abwaba rahmatik (O Allah, open to me the gates of Your mercy).' And when he leaves, let him send peace upon the Prophet and say: 'Allahumma- simni minash-shaitanir-rajim (O Allah, protect me from the accursed Shaitan).'"
Hadith Reference سنن ابن ماجه / كتاب المساجد والجماعات / 773
Hadith Grading الألبانی: صحيح  |  زبیر علی زئی: صحيح
Hadith Takhrij « تفرد بہ ابن ماجہ ، ( تحفة الأشراف : 12962 ، ومصباح الزجاجة : 291 ) ( صحیح ) »
Explanation & Benefits
Maulana Ataullah Sajid
Benefit:
The wisdom in seeking refuge from Satan is that when a person is in the mosque, he is engaged in the remembrance and worship of Allah, due to which Satan's schemes do not affect him. However, when a person leaves the mosque, the devils get an opportunity to try to mislead him in buying and selling and other dealings. Therefore, at that time, a person needs to come under the protection of Allah so that he may remain safe from the evil of Satan.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 773