She reported that whenever the Prophet ﷺ entered the mosque, he would send blessings and peace upon Muhammad, then say, "O Allah, forgive me my sins and open for me the gates of Your mercy." And when he left, he would send blessings and peace upon Muhammad and say, "O Allah, forgive me my sins and open for me the gates of Your bounty."
حدثنا أسود بن عامر قال حدثنا الحسن يعني ابن صالح عن ليث عن عبد الله بن الحسن عن فاطمة بنت حسين
عن النبي ﷺ قالت كان إذا دخل المسجد صلى على محمد وسلم ثم قال اللهم اغفر لي ذنوبي وافتح لي أبواب رحمتك وإذا خرج صلى على محمد وسلم وقال اللهم اغفر لي ذنوبي وافتح لي أبواب فضلك