حَدَّثَنَا الْحَسَنُ بْنُ عَرَفَةَ ، حَدَّثَنَا مُحَمَّدُ بْنُ خَازِمٍ ، عَنْ لَيْثِ بْنِ أَبِي سُلَيْمٍ ، عَنْ عَبْدِ اللهِ بْنِ الْحَسَنِ ، عَنْ فَاطِمَةَ بِنْتِ رَسُولِ اللهِ ، قَالَتْ : كَانَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - إِذَا دَخَلَ الْمَسْجِدَ قَالَ : بِسْمِ اللهِ ، وَالسَّلَامُ عَلَى رَسُولِ اللهِ ، اللَّهُمَّ اغْفِرْ لِي ذُنُوبِي ، وَافْتَحْ لِي أَبْوَابَ رَحْمَتِكَ ، وَإِذَا خَرَجَ قَالَ : بِسْمِ اللهِ ، وَالسَّلَامُ عَلَى رَسُولِ اللهِ ، اللَّهُمَّ اغْفِرْ لِي ذُنُوبِي ، وَافْتَحْ لِي أَبْوَابَ فَضْلِكَ .
It is narrated from Sayyidah Fatimah (may Allah be pleased with her) that when the Messenger of Allah (peace and blessings be upon him) entered the mosque, he would say: 'Bismillah, was-salamu 'ala Rasulillah. Allahummaghfir li dhunubi, waftah li abwaba rahmatik' (In the name of Allah, and peace be upon the Messenger of Allah. O Allah, forgive me my sins and open for me the gates of Your mercy). And when he (peace and blessings be upon him) went out, he would say: 'Bismillah, was-salamu 'ala Rasulillah. Allahummaghfir li dhunubi, waftah li abwaba fadlik' (In the name of Allah, and peace be upon the Messenger of Allah. O Allah, forgive me my sins and open for me the gates of Your bounty).