It is narrated from Sayyiduna Ali (may Allah be pleased with him) that when the Messenger of Allah (peace and blessings be upon him) entered the mosque, he would say: 'Allahumma iftah li abwaba rahmatik' (O Allah, open for me the gates of Your mercy), and when he came out of the mosque, he would say: 'Allahumma iftah li abwaba fadlik' (O Allah, open for me the gates of Your bounty).
Hadith Referenceمسند أبي يعلى الموصلي / مسند علي بن أبي طالب رضي الله عنه / 486
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده ضعيف . » «قال سعيد بن محمد السناري: صحيح» «أخرجه مجمع الزوائد ومنبع الفوائد برقم: 2096، مسند ابویعلیٰ ترقیم الاثری: 481»