Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Prophet Muhammad (peace and blessings be upon him) said: "When a person enters the mosque, he should send salutations upon the Prophet Muhammad (peace and blessings be upon him) and say: 'O Allah! Open for me the doors of Your mercy.' And when he leaves, he should send salutations upon the Prophet Muhammad (peace and blessings be upon him) and say: 'O Allah! Grant me protection from the accursed devil.'"
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2050
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - مضى (2045). تنبيه!! رقم (2045) = (2047) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطهو في «صحيح ابن خزيمة» برقم (452)، وقد تقدم برقم (2047) عن عبد الله بن محمد الأزدي، عن إسحاق بن إبراهيم، عن أبي بكر الحنفي، به، وأوردت تخريجه هناك.