مشكوة المصابيح Mishkat al-Masabih كتاب الصلاة The Book of Prayer
(تَسَابِيحُ دُخُولِ وَخُرُوجِ ٱلْمَسْجِدِ)

(Praises when entering and exiting the mosque)

1 hadith
Hadith 731
وَعَنْ فَاطِمَةَ بِنْتِ الْحُسَيْنِ عَنْ جَدَّتِهَا فَاطِمَةَ الْكُبْرَى رَضِيَ اللَّهُ عَنْهُمْ قَالَتْ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا دَخَلَ الْمَسْجِدَ صَلَّى عَلَى مُحَمَّدٍ وَسَلَّمَ وَقَالَ: «رَبِّ اغْفِرْ لِي ذُنُوبِي وَافْتَحْ لِي أَبْوَابَ رَحْمَتِكَ» وَإِذَا خَرَجَ صَلَّى عَلَى مُحَمَّدٍ وَسَلَّمَ وَقَالَ رَبِّ اغْفِرْ لِي ذُنُوبِي وَافْتَحْ لِي أَبْوَابَ فَضْلِكَ . رَوَاهُ التِّرْمِذِيُّ وَأَحْمَدُ وَابْنُ مَاجَهْ وَفِي رِوَايَتِهِمَا قَالَتْ: إِذَا دَخَلَ الْمَسْجِدَ وَكَذَا إِذَا خَرَجَ قَالَ: «بِسْمِ اللَّهِ وَالسَّلَامُ عَلَى رَسُولِ اللَّهِ» بَدَلَ: صَلَّى عَلَى مُحَمَّدٍ وَسَلَّمَ. وَقَالَ التِّرْمِذِيُّ لَيْسَ إِسْنَادُهُ بِمُتَّصِلٍ وَفَاطِمَةُ بِنْتُ الْحُسَيْنِ لَمْ تدْرك فَاطِمَة الْكُبْرَى
Fatima daughter of al-Husain said on the authority of her grand-mother, Fatima the elder,* that when the Prophet entered the mosque he would pray for blessings and safety for himself and say, “My Lord, forgive me my sins, and open to me the gates of Thy mercy.” And when he went out he would pray for blessings and safety for himself and say, “My Lord, forgive me my sins, and open to me the gates of Thy abundance.” *The daughter of the Prophet who married ‘Ali. Tirmidhi, Ahmad and Ibn Majah transmitted it. In the version of the last two she said that when he entered the mosque, and also when he came out, he said, “In the name of God, and peace be upon God’s Messenger,” instead of “he would pray for blessings and safety for himself.” Tirmidhi said that its isnad is not connected, for Fatima daughter of al-Husain was not born in the lifetime of Fatima the elder.
Hadith Reference Mishkat al-Masabih / The Book of Prayer / Hadith: 731
Hadith Grading الألبانی: ضَعِيف  |  زبیر علی زئی: إسناده ضعيف
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «إسناده ضعيف، رواه الترمذي (314) و أحمد (282/6 ح 26948) و ابن ماجه (771) ¤٭ ليث بن أبي سليم: ضعيف من جھة حفظه، و مدلس و السند منقطع، و حديث مسلم (713 ب) يغني عنه .»