It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you enters the mosque, let him send the greeting of peace upon the Prophet (peace and blessings be upon him) and say: 'Allahumma iftah li abwaba rahmatik' (O Allah, open for me the doors of Your mercy). And when he leaves the mosque, let him send the greeting of peace upon the Prophet (peace and blessings be upon him) and say: 'Allahumma ajirni min al-shaytan al-rajim' (O Allah, protect me from Satan the accursed)."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4321
Hadith Gradingمحدثین:حسن
Hadith Takhrij«حسن۔ ابن ماجه 773، ابن خزيمه 452-2706»