صحیح ابن حبان
Ibn Hibban
كتاب الصلاة
Book of Prayer
باب الإمامة والجماعة - فصل في فضل الجماعة - ذكر الأمر بسؤال الله جل وعلا من فضله للخارج من المسجد
Chapter on Leadership and Congregation - Section on the Virtue of Congregation - Command to ask Allah for His bounty when leaving the mosque
1 hadith
Hadith 2049
Sayyiduna Abu Humayd Sa'idi (may Allah be pleased with him) or perhaps Sayyiduna Abu Usayd Sa'idi (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) said: "When a person comes to the mosque, he should recite: 'O Allah! Open for me the doors of Your mercy.' And when he goes out, he should recite: 'O Allah! I ask You for Your bounty.'"