حَدَّثَنَا سُوَيْدٌ ، حَدَّثَنَا صَالِحُ بْنُ مُوسَى بْنِ إِسْحَاقَ بْنِ طَلْحَةَ الْقُرَشِيُّ ، عَنْ عَبْدِ اللهِ بْنِ الْحَسَنِ ، عَنْ أُمِّهِ فَاطِمَةَ بِنْتِ الْحُسَيْنِ ، عَنْ أَبِيهَا ، عَنْ عَلِيٍّ ، أَنَّ رَسُولَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا دَخَلَ الْمَسْجِدَ قَالَ : اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ ، وَإِذَا خَرَجَ ، قَالَ : اللَّهُمَّ افْتَحْ لِي أَبْوَابَ فَضْلِكَ .
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).