قَالَ إِسْمَاعِيلُ: فَلَقِيتُ عَبْدَ اللَّهِ بْنَ حَسَنٍ، فَسَأَلْتُهُ عَنْ هَذَا الْحَدِيثِ فَقَالَ: كَانَ إِذَا دَخَلَ قَالَ: «اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ». وَإِذَا خَرَجَ قَالَ: «رَبِّ افْتَحْ لِي أَبْوَابَ فَضْلِكَ»
Isma'il (may Allah have mercy on him) said: I met Abdullah bin Hasan (may Allah have mercy on him) and asked him about this hadith, and he told me that when the Messenger of Allah (peace and blessings be upon him) entered the mosque he would recite this supplication: 'Allahummaftah li abwaba rahmatik' (O Allah, open for me the doors of Your mercy), and when he (peace and blessings be upon him) came out he would say: 'Rabbiftah li abwaba fadlik' (O my Lord, open for me the doors of Your bounty).