صحیح ابن حبان
Sahih Ibn Hibban
كِتَابُ الصَّلَاةِ
Book of Prayer
باب الإمامة والجماعة - فصل في فضل الجماعة - ذكر ما يقول المرء عند دخول المسجد يريد الصلاة
Chapter on Leadership and Congregation - Section on the Virtue of Congregation - What to say when entering the mosque for prayer
Hadith Number: 2047
اخبرنا عبد الله بن محمد الازدي ، قال: حدثنا إسحاق بن إبراهيم ، اخبرنا ابو بكر الحنفي ، حدثنا الضحاك بن عثمان ، عن سعيد المقبري ، عن ابي هريرة ، عن رسول الله صلى الله عليه وسلم قال: " إذا دخل احدكم المسجد فليسلم على النبي صلى الله عليه وسلم وليقل: اللهم افتح لي ابواب رحمتك، وإذا خرج فليسلم على النبي صلى الله عليه وسلم، وليقل: اللهم اجرني من الشيطان الرجيم" .
Sayyiduna Abu Huraira (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings be upon him): When a person enters the mosque, he should send blessings upon the Noble Prophet (peace and blessings be upon him) and recite this: "O Allah! Open the doors of Your mercy for me." And when that person leaves the mosque, he should send blessings upon the Noble Prophet (peace and blessings be upon him) and recite this phrase: "O Allah! Protect me from the accursed devil."
تخریج الحدیث: