Back to Chapters
Chapter 2

Sunan Abu Dawud — Prayer (Kitab Al-Salat)

Read the narrations, translations and available source grading.

All Chapters
1
Purification (Kitab Al-Taharah)
كتاب الطهارة
2
Prayer (Kitab Al-Salat)
كتاب الصلاة
3
The Book Of The Prayer For Rain (Kitab al-Istisqa')
كتاب الاستسقاء
4
Prayer (Kitab Al-Salat): Detailed Rules of Law about the Prayer during Journey
كتاب صلاة السفر
5
Prayer (Kitab Al-Salat): Voluntary Prayers
كتاب التطوع
6
Prayer (Kitab Al-Salat): Detailed Injunctions about Ramadan
كتاب شهر رمضان
7
Prayer (Kitab Al-Salat): Prostration while reciting the Qur'an
كتاب سجود القرآن
8
Prayer (Kitab Al-Salat): Detailed Injunctions about Witr
كتاب الوتر
9
Zakat (Kitab Al-Zakat)
كتاب الزكاة
10
The Book of Lost and Found Items
كتاب اللقطة
11
The Rites of Hajj (Kitab Al-Manasik Wa'l-Hajj)
كتاب المناسك
12
Marriage (Kitab Al-Nikah)
كتاب النكاح
13
Divorce (Kitab Al-Talaq)
كتاب الطلاق
14
Fasting (Kitab Al-Siyam)
كتاب الصوم
15
Jihad (Kitab Al-Jihad)
كتاب الجهاد
16
Sacrifice (Kitab Al-Dahaya)
كتاب الضحايا
17
Game (Kitab Al-Said)
كتاب الصيد
18
Wills (Kitab Al-Wasaya)
كتاب الوصايا
19
Shares of Inheritance (Kitab Al-Fara'id)
كتاب الفرائض
20
Tribute, Spoils, and Rulership (Kitab Al-Kharaj, Wal-Fai' Wal-Imarah)
كتاب الخراج والإمارة والفىء
21
Funerals (Kitab Al-Jana'iz)
كتاب الجنائز
22
Oaths and Vows (Kitab Al-Aiman Wa Al-Nudhur)
كتاب الأيمان والنذور
23
Commercial Transactions (Kitab Al-Buyu)
كتاب البيوع
24
Wages (Kitab Al-Ijarah)
كتاب الإجارة
25
The Office of the Judge (Kitab Al-Aqdiyah)
كتاب الأقضية
26
Knowledge (Kitab Al-Ilm)
كتاب العلم
27
Drinks (Kitab Al-Ashribah)
كتاب الأشربة
28
Foods (Kitab Al-At'imah)
كتاب الأطعمة
29
Medicine (Kitab Al-Tibb)
كتاب الطب
30
Divination and Omens (Kitab Al-Kahanah Wa Al-Tatayyur)
كتاب الكهانة و التطير
31
The Book of Manumission of Slaves
كتاب العتق
32
Dialects and Readings of the Qur'an (Kitab Al-Huruf Wa Al-Qira'at)
كتاب الحروف والقراءات
33
Hot Baths (Kitab Al-Hammam)
كتاب الحمَّام
34
Clothing (Kitab Al-Libas)
كتاب اللباس
35
Combing the Hair (Kitab Al-Tarajjul)
كتاب الترجل
36
Signet-Rings (Kitab Al-Khatam)
كتاب الخاتم
37
Trials and Fierce Battles (Kitab Al-Fitan Wa Al-Malahim)
كتاب الفتن والملاحم
38
The Promised Deliverer (Kitab Al-Mahdi)
كتاب المهدى
39
Battles (Kitab Al-Malahim)
كتاب الملاحم
40
Prescribed Punishments (Kitab Al-Hudud)
كتاب الحدود
41
Types of Blood-Wit (Kitab Al-Diyat)
كتاب الديات
42
Model Behavior of the Prophet (Kitab Al-Sunnah)
كتاب السنة
43
General Behavior (Kitab Al-Adab)
كتاب الأدب

What is Sunan Abu Dawud Chapter 2 about?

Read Sunan Abu Dawud, Chapter 2: Prayer (Kitab Al-Salat). This chapter contains 770 source records; you are reading page 3. Open a narration to see its permanent reference, available translations and source information.

Topics in the narrations on this page

  • On (The Reward) Of Building Masajid
  • Masajid In The Dur (Villages)
  • About Having Torches In The Masajid
  • On The Pebbles In The Masjid
  • On Cleaning The Masjid

Collection history and compiler biographySources and methodology

حَدَّثَنَا الْعَبَّاسُ الْعَنْبَرِيُّ، ‏‏‏‏‏‏حَدَّثَنَا سُلَيْمَانُ بْنُ دَاوُدَ وَهُوَ الطَّيَالِسِيُّ، ‏‏‏‏‏‏حَدَّثَنَا سُلَيْمَانُ يَعْنِي ابْنَ الْمُغِيرَةِ، ‏‏‏‏‏‏عَنْ ثَابِتٍ، ‏‏‏‏‏‏عَنْ عَبْدِ اللَّهِ بْنِ رَبَاحٍ،‏‏‏‏عَنْ أَبِي قَتَادَةَ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ لَيْسَ فِي النَّوْمِ تَفْرِيطٌ، ‏‏‏‏‏‏إِنَّمَا التَّفْرِيطُ فِي الْيَقَظَةِ أَنْ تُؤَخِّرَ صَلَاةً حَتَّى يَدْخُلَ وَقْتُ أُخْرَى .

The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم as saying: There is no remissness in sleep, it is only when one is awake that there is remissness when you delay saying the prayer till the time for the next prayer comes.

— Abu Qatadah رضی اللہ عنہ reported

حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ، ‏‏‏‏‏‏أَخْبَرَنَا هَمَّامٌ، ‏‏‏‏‏‏عَنْ قَتَادَةَ، ‏‏‏‏‏‏عَنْ أَنَسِ بْنِ مَالِكٍ، ‏‏‏‏‏‏أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ مَنْ نَسِيَ صَلَاةً فَلْيُصَلِّهَا إِذَا ذَكَرَهَا، ‏‏‏‏‏‏لَا كَفَّارَةَ لَهَا إِلَّا ذَلِكَ .

The Prophet صلی ‌اللہ ‌علیہ ‌وسلم as saying: If any one forgets a prayer or oversleeps, he should observe it when he remembers it; there is no expiation for it except that.

— Anas bin Malik رضی اللہ عنہ reported

حَدَّثَنَا وَهْبُ بْنُ بَقِيَّةَ، ‏‏‏‏‏‏عَنْ خَالِدٍ، ‏‏‏‏‏‏عَنْ يُونُسَ بْنِ عُبَيْدٍ، ‏‏‏‏‏‏عَنِ الْحَسَنِ، ‏‏‏‏‏‏عَنْ عِمْرَانَ بْنِ حُصَيْنٍ، ‏‏‏‏‏‏ أَنّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ فِي مَسِيرٍ لَهُ فَنَامُوا عَنْ صَلَاةِ الْفَجْرِ، ‏‏‏‏‏‏فَاسْتَيْقَظُوا بِحَرِّ الشَّمْسِ، ‏‏‏‏‏‏فَارْتَفَعُوا قَلِيلًا حَتَّى اسْتَقَلَّتِ الشَّمْسُ ثُمَّ أَمَرَ مُؤَذِّنًا فَأَذَّنَ فَصَلَّى رَكْعَتَيْنِ قَبْلَ الْفَجْرِ ثُمَّ أَقَامَ ثُمَّ صَلَّى الْفَجْرَ .

The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم was on his journey. They (the people) slept abandoning the Fajr prayer. They awoke by the heat of the sun. Then they travelled a little until the sun rose high. He (the Prophet) commanded the muadhdhin (one who called for prayer) to call for prayer. He then offered two rak'ahs of prayer (sunnah prayer) before the (obligatory) fajr prayer. Then he (the muadhdhin) announced for saying the prayer in congregation (i. e. he uttered iqamah). Then he led them in the morning prayer.

— Imran bin Husain رضی اللہ عنہما said

حَدَّثَنَا عَبَّاسٌ الْعَنْبَرِيُّ. ح وحَدَّثَنَا أَحْمَدُ بْنُ صَالِحٍ، ‏‏‏‏‏‏وَهَذَا لَفْظُ عَبَّاسٍ، ‏‏‏‏‏‏أَنَّ عَبْدَ اللَّهِ بْنَ يَزِيدَ حَدَّثَهُمْ، ‏‏‏‏‏‏عَنْ حَيْوَةَ بْنِ شُرَيْحٍ، ‏‏‏‏‏‏عَنْ عَيَّاشِ بْنِ عَبَّاسٍ يَعْنِي الْقِتْبَانِيَّ، ‏‏‏‏‏‏أَنَّ كُلَيْبَ بْنَ صُبْحٍ حَدَّثَهُمْ، ‏‏‏‏‏‏أَنَّ الزِّبْرِقَانَ حَدَّثَهُ، ‏‏‏‏‏‏عَنْ عَمِّهِ عَمْرِو بْنِ أُمَيَّةَ الضَّمْرِيِّ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ كُنَّا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي بَعْضِ أَسْفَارِهِ فَنَامَ عَنِ الصُّبْحِ، ‏‏‏‏‏‏حَتَّى طَلَعَتِ الشَّمْسُ فَاسْتَيْقَظَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏فَقَالَ:‏‏‏‏ تَنَحَّوْا عَنْ هَذَا الْمَكَانِ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ ثُمَّ أَمَرَ بِلَالًا فَأَذَّنَ ثُمَّ تَوَضَّئُوا وَصَلَّوْا رَكْعَتَيِ الْفَجْرِ، ‏‏‏‏‏‏ثُمَّ أَمَرَ بِلَالًا فَأَقَامَ الصَّلَاةَ فَصَلَّى بِهِمْ صَلَاةَ الصُّبْحِ .

We were in the company of the Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم during one of his journeys. He overslept abandoning the morning prayer until the sun had arisen. The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم awoke and said: Go away from this place. He then commanded Bilal to call for prayer. He called for prayer. They (the people) performed ablution and offered two rak'ahs of the morning prayer (sunnah prayer). He then commanded Bilal (to utter the iqamah, i. e. to summon the people to attend the prayer). He announced the prayer (i.e. uttered the iqamah) and he led them in the morning prayer.

— Narrated Amr Ibn Umayyah ad-Damri رضی اللہ عنہ

حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْحَسَنِ، ‏‏‏‏‏‏حَدَّثَنَا حَجَّاجٌ يَعْنِي ابْنَ مُحَمَّدٍ، ‏‏‏‏‏‏حَدَّثَنَا حَرِيزٌ. وحَدَّثَنَا عُبَيْدُ بْنُ أَبِي الْوَزِيرِ، ‏‏‏‏‏‏حَدَّثَنَامُبَشِّرٌ يَعْنِي الْحَلَبِيَّ، ‏‏‏‏‏‏حَدَّثَنَا حَرِيزٌ يَعْنِي ابْنَ عُثْمَانَ، ‏‏‏‏‏‏حَدَّثَنِي يَزِيدُ بْنُ صَالِحٍ، ‏‏‏‏‏‏عَنْ ذِي مِخْبَرٍ الْحَبَشِيِّ وَكَانَ يَخْدُمُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏فِي هَذَا الْخَبَرِ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ فَتَوَضَّأَ يَعْنِي النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وُضُوءًا لَمْ يَلْثَ مِنْهُ التُّرَابُ، ‏‏‏‏‏‏ثُمَّ أَمَرَ بِلَالًا فَأَذَّنَ، ‏‏‏‏‏‏ثُمَّ قَامَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَرَكَعَ رَكْعَتَيْنِ غَيْرَ عَجِلٍ، ‏‏‏‏‏‏ثُمَّ قَالَ لِبِلَالٍ:‏‏‏‏ أَقِمْ الصَّلَاةَ. ثُمَّ صَلَّى الْفَرْضَ وَهُوَ غَيْرُ عَجِلٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ عَنْ حَجَّاجٍ، ‏‏‏‏‏‏عَنْ يَزِيدَ بْنِ صُلَيْحٍ، ‏‏‏‏‏‏حَدَّثَنِي ذُو مِخْبَرٍ رَجُلٌ مِنْ الْحَبَشَةِ، ‏‏‏‏‏‏وقَالَ عُبَيْدٌ:‏‏‏‏ يَزِيدُ بْنُ صَالِحٍ.

Who used to serve the Prophet صلی ‌اللہ ‌علیہ ‌وسلم, reported a version of the previous tradition. The Prophet صلی ‌اللہ ‌علیہ ‌وسلم performed ablution in such a way that there is no mud on the earth. He then commanded Bilal رضی اللہ عنہ (to call for prayer). He called for prayer. The Prophet صلی ‌اللہ ‌علیہ ‌وسلم stood and offered two rak'ahs of prayer unhurriedly. This is narrated by Hajjaj on the authority of Yazid bin Sulaih from Dhu Mikhbar from a person of al-Habashah (Ethiopia). Ubaid (a narrator) said: Yazid bin Salih (instead of Yazid bin Sulaih).

— Narrator Dhu Mikhbar al-Habashi رضی اللہ عنہ

حَدَّثَنَا مُؤَمَّلُ بْنُ الْفَضْلِ، ‏‏‏‏‏‏حَدَّثَنَا الْوَلِيدُ، ‏‏‏‏‏‏عَنْ حَرِيزٍ يَعْنِي ابْنَ عُثْمَانَ، ‏‏‏‏‏‏عَنْ يَزِيدَ بْنِ صَالِحٍ، ‏‏‏‏‏‏عَنْ ذِي مِخْبَرٍ ابْنِ أَخِي النَّجَاشِيِّ، ‏‏‏‏‏‏فِي هَذَا الْخَبَرِ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ فَأَذَّنَ وَهُوَ غَيْرُ عَجِلٍ.

The nephew of the Negus. This version adds: He (Bilal) called for prayer unhurriedly.

— Narrators Dhu Mikhbar

حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، ‏‏‏‏‏‏حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، ‏‏‏‏‏‏حَدَّثَنَا شُعْبَةُ، ‏‏‏‏‏‏عَنْ جَامِعِ بْنِ شَدَّادٍ، ‏‏‏‏‏‏سَمِعْتُ عَبْدَ الرَّحْمَنِ بْنَ أَبِي عَلْقَمَةَ، ‏‏‏‏‏‏سَمِعْتُ عَبْدَ اللَّهِ بْنَ مَسْعُودٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ أَقْبَلْنَا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ زَمَنَ الْحُدَيْبِيَةِ، ‏‏‏‏‏‏فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ مَنْ يَكْلَؤُنَا، ‏‏‏‏‏‏فَقَالَ بِلَالٌ:‏‏‏‏ أَنَا، ‏‏‏‏‏‏فَنَامُوا حَتَّى طَلَعَتِ الشَّمْسُ، ‏‏‏‏‏‏فَاسْتَيْقَظَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏فَقَالَ:‏‏‏‏ افْعَلُوا كَمَا كُنْتُمْ تَفْعَلُونَ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ فَفَعَلْنَا، ‏‏‏‏‏‏قَالَ:‏‏‏‏ فَكَذَلِكَ فَافْعَلُوا لِمَنْ نَامَ أَوْ نَسِيَ .

We proceeded with the Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم on the occasion of al-Hudaybiyyah. The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم said: Who will keep watch for us? Bilal رضی اللہ عنہ said: I (shall do). The overslept till the sun arose. The Prophet صلی ‌اللہ ‌علیہ ‌وسلم awoke and said: Do as you used to do (i.e. offer prayer as usual). Then we did accordingly. He said: Anyone who oversleeps or forgets (prayer) should do similarly.

— Narrated Abdullah Ibn Masud رضی اللہ عنہ

حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ بْنِ سُفْيَانَ، ‏‏‏‏‏‏أَخْبَرَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، ‏‏‏‏‏‏عَنْ سُفْيَانَ الثَّوْرِيِّ، ‏‏‏‏‏‏عَنْ أَبِي فَزَارَةَ، ‏‏‏‏‏‏عَنْ يَزِيدَ بْنِ الْأَصَمِّ، ‏‏‏‏‏‏عَنِ ابْنِ عَبَّاسٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ مَا أُمِرْتُ بِتَشْيِيدِ الْمَسَاجِدِ ، ‏‏‏‏‏‏قَالَ ابْنُ عَبَّاسٍ:‏‏‏‏ لَتُزَخْرِفُنَّهَا كَمَا زَخْرَفَتْ الْيَهُودُ، ‏‏‏‏‏‏وَالنَّصَارَى.

The Messenger of Allah ﷺ said: I was not commanded to build high mosques. Ibn Abbas رضی اللہ عنہما said: You will certainly adorn them as the Jews and Christians did.

— Narrated Abdullah Ibn Abbas رضی اللہ عنہما

حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ الْخُزَاعِيُّ، ‏‏‏‏‏‏حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، ‏‏‏‏‏‏عَنْ أَيُّوبَ، ‏‏‏‏‏‏عَنْ أَبِي قِلَابَةَ، ‏‏‏‏‏‏عَنْ أَنَسٍ، ‏‏‏‏‏‏وَقَتَادَةُ، ‏‏‏‏‏‏عَنْ أَنَسٍ، ‏‏‏‏‏‏أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ لَا تَقُومُ السَّاعَةُ حَتَّى يَتَبَاهَى النَّاسُ فِي الْمَسَاجِدِ .

The Prophet صلی ‌اللہ ‌علیہ ‌وسلم said: The Last Hour will not come until people vie with one another about mosques.

— Narrated Anas Ibn Malik رضی اللہ عنہ

حَدَّثَنَا رَجَاءُ بْنُ الْمُرَجَّى، ‏‏‏‏‏‏حَدَّثَنَا أَبُو هَمَّامٍ الدَّلَّالُ مُحَمَّدُ بْنُ مُحَبَّبٍ، ‏‏‏‏‏‏حَدَّثَنَا سَعِيدُ بْنُ السَّائِبِ، ‏‏‏‏‏‏عَنْ مُحَمَّدِ بْنِ عَبْدِ اللَّهِ بْنِ عِيَاضٍ، ‏‏‏‏‏‏عَنْ عُثْمَانَ بْنِ أَبِي الْعَاصِ، ‏‏‏‏‏‏ أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَمَرَهُ أَنْ يَجْعَلَ مَسْجِدَ الطَّائِفِ حَيْثُ كَانَ طَوَاغِيتُهُمْ .

The Prophet صلی ‌اللہ ‌علیہ ‌وسلم commanded him to build a mosque at Taif where the idols were placed.

— Narrated Uthman Ibn Abul As رضی اللہ عنہ

حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى بْنِ فَارِسٍ، ‏‏‏‏‏‏وَمُجَاهِدُ بْنُ مُوسَى، ‏‏‏‏‏‏وَهُوَ أَتَمُّ، ‏‏‏‏‏‏قَالَا:‏‏‏‏ حَدَّثَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ، ‏‏‏‏‏‏حَدَّثَنَا أَبِي، ‏‏‏‏‏‏عَنْصَالِحٍ، ‏‏‏‏‏‏حَدَّثَنَا نَافِعٌ، ‏‏‏‏‏‏أَنَّ عَبْدَ اللَّهِ بْنَ عُمَر أَخْبَرَهُ أَنّ الْمَسْجِدَ كَانَ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَبْنِيًّا بِاللَّبِنِ وَالْجَرِيدِ، ‏‏‏‏‏‏قَالَ مُجَاهِدٌ:‏‏‏‏ وَعُمُدُهُ مِنْ خَشَبِ النَّخْلِ، ‏‏‏‏‏‏فَلَمْ يَزِدْ فِيهِ أَبُو بَكْرٍ شَيْئًا، ‏‏‏‏‏‏وَزَادَ فِيهِ عُمَرُ:‏‏‏‏ وَبَنَاهُ عَلَى بِنَائِهِ فِي عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِاللَّبِنِ وَالْجَرِيدِ وَأَعَادَ عُمُدَهُ، ‏‏‏‏‏‏قَالَ مُجَاهِدٌ:‏‏‏‏ عُمُدَهُ خَشَبًا، ‏‏‏‏‏‏وَغَيَّرَهُ عُثْمَانُ فَزَادَ فِيهِ زِيَادَةً كَثِيرَةً:‏‏‏‏ وَبَنَى جِدَارَهُ بِالْحِجَارَةِ الْمَنْقُوشَةِ وَالْقَصَّةِ وَجَعَلَ عُمُدَهُ مِنْ حِجَارَةٍ مَنْقُوشَةٍ وَسَقْفَهُ بِالسَّاجِ، ‏‏‏‏‏‏قَالَ مُجَاهِدٌ:‏‏‏‏ وَسَقَّفَهُ السَّاجَ ، ‏‏‏‏‏‏قَالَ أَبُو دَاوُد:‏‏‏‏ قَصَّةُ الْجِصُّ.

The mosque (of the Prophet) during his lifetime was built with bricks, its roof with branches of the palm-tree, and its pillars with palm-wood, as Mujahid said: Abu Bakr رضی اللہ عنہ did not add anything to it. But Umar رضی اللہ عنہ added to it; he built as it was built during the lifetime of the Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم with bricks and branches, and he changed its pillars. Mujahid said: Its pillars were made of wood. Uthman رضی اللہ عنہ changed it altogether with increasing addition. He built its walls with decorated stone and lime. And he built the pillars with decorated stone and its roof with teak. Mujahid said: Its roof was made of teak. Abu Dawud said: Al-Qassah means lime used as mortar.

— Abdullah bin Umar رضی اللہ عنہما reported

حَدَّثَنَا مُحَمَّدُ بْنُ حَاتِمٍ، ‏‏‏‏‏‏حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى، ‏‏‏‏‏‏عَنْ شَيْبَانَ، ‏‏‏‏‏‏عَنْ فِرَاسٍ، ‏‏‏‏‏‏عَنْ عَطِيَّةَ، ‏‏‏‏‏‏عَنِ ابْنِ عُمَرَ، ‏‏‏‏‏‏ أَنّ مَسْجِدَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَتْ سَوَارِيهِ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مِنْ جُذُوعِ النَّخْلِ، ‏‏‏‏‏‏أَعْلَاهُ مُظَلَّلٌ بِجَرِيدِ النَّخْلِ، ‏‏‏‏‏‏ثُمَّ إِنَّهَا نَخِرَتْ فِي خِلَافَةِ أَبِي بَكْرٍ فَبَنَاهَا بِجُذُوعِ النَّخْلِ وَبِجَرِيدِ النَّخْلِ، ‏‏‏‏‏‏ثُمَّ إِنَّهَا نَخِرَتْ فِي خِلَافَةِ عُثْمَانَ فَبَنَاهَا بِالْآجُرِّ، ‏‏‏‏‏‏فَلَمْ تَزَلْ ثَابِتَةً حَتَّى الْآنَ .

The pillars of the mosque of the Prophet صلی ‌اللہ ‌علیہ ‌وسلم during the life time of the Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم were made of the trunks of the palm-tree; they covered from the above by twigs of the palm-tree; they decayed during the caliphate of Abu Bakr رضی اللہ عنہ . He built it afresh with trunks and twigs of the palm-tree. But they again decayed during the caliphate of Uthman رضی اللہ عنہ . He, therefore, built it with bricks. That survives until today.

— Ibn Umar رضی اللہ عنہما reported

حَدَّثَنَا مُسَدَّدٌ، ‏‏‏‏‏‏حَدَّثَنَا عَبْدُ الْوَارِثِ، ‏‏‏‏‏‏عَنْ أَبِي التَّيَّاحِ، ‏‏‏‏‏‏عَنْ أَنَسِ بْنِ مَالِكٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ قَدِمَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْمَدِينَةَ فَنَزَلَ فِي عُلْوِ الْمَدِينَةِ فِي حَيٍّ يُقَالُ لَهُمْ:‏‏‏‏ بَنُو عَمْرِو بْنِ عَوْفٍ، ‏‏‏‏‏‏فَأَقَامَ فِيهِمْ أَرْبَعَ عَشْرَةَ لَيْلَةً ثُمَّ أَرْسَلَ إِلَى بَنِي النَّجَّارِ فَجَاءُوا مُتَقَلِّدِينَ سُيُوفَهُمْ، ‏‏‏‏‏‏فَقَالَ أَنَسٌ:‏‏‏‏ فَكَأَنِّي أَنْظُرُ إِلَى رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَلَى رَاحِلَتِهِ، ‏‏‏‏‏‏وَأَبُو بَكْرٍ رِدْفُهُ، ‏‏‏‏‏‏وَمَلَأُ بَنِي النَّجَّارِ حَوْلَهُ حَتَّى أَلْقَى بِفِنَاءِ أَبِي أَيُّوبَ، ‏‏‏‏‏‏وَكَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُصَلِّي حَيْثُ أَدْرَكَتْهُ الصَّلَاةُ وَيُصَلِّي فِي مَرَابِضِ الْغَنَمِ، ‏‏‏‏‏‏وَإِنَّهُ أَمَرَ بِبِنَاءِ الْمَسْجِدِ، ‏‏‏‏‏‏فَأَرْسَلَ إِلَى بَنِي النَّجَّارِ، ‏‏‏‏‏‏فَقَالَ:‏‏‏‏ يَا بَنِي النَّجَّارِ، ‏‏‏‏‏‏ثَامِنُونِي بِحَائِطِكُمْ هَذَا، ‏‏‏‏‏‏فَقَالُوا:‏‏‏‏ وَاللَّهِ لَا نَطْلُبُ ثَمَنَهُ إِلَّا إِلَى اللَّهِ عَزَّ وَجَلَّ، ‏‏‏‏‏‏قَالَ أَنَسٌ:‏‏‏‏ وَكَانَ فِيهِ مَا أَقُولُ لَكُمْ كَانَتْ فِيهِ قُبُورُ الْمُشْرِكِينَ وَكَانَتْ فِيهِ خِرَبٌ وَكَانَ فِيهِ نَخْلٌ، ‏‏‏‏‏‏فَأَمَرَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِقُبُورِ الْمُشْرِكِينَ فَنُبِشَتْ، ‏‏‏‏‏‏وَبِالْخِرَبِ فَسُوِّيَتْ، ‏‏‏‏‏‏وَبِالنَّخْلِ فَقُطِعَ، ‏‏‏‏‏‏فَصَفُّوا النَّخْلَ قِبْلَةَ الْمَسْجِدِ وَجَعَلُوا عِضَادَتَيْهِ حِجَارَةً، ‏‏‏‏‏‏وَجَعَلُوا يَنْقُلُونَ الصَّخْرَ وَهُمْ يَرْتَجِزُونَ وَالنَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَعَهُمْ وَهُوَ يَقُولُ:‏‏‏‏ اللَّهُمَّ لَا خَيْرَ إِلَّا خَيْرُ الْآخِرَهْ، ‏‏‏‏‏‏فَانْصُرِ الْأَنْصَارَ وَالْمُهَاجِرَهْ .

Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم came over to Madina and encamped at the upper side of Madina among the tribe known as Banu Amr bin Awf. He stayed among them for fourteen days. He then sent someone to call Banu al-Najjar. They came to him hanging their swords from the necks. Anas رضی اللہ عنہ then said: As if I am looking at the Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم sitting on his mount and Abu Bakr رضی اللہ عنہ seated behind him, and Banu al-Najjar standing around him. He descended in the courtyard of Abu Ayyub رضی اللہ عنہ. The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم would say his prayer in the folds of the sheep and goats. He commanded us to build a mosque. He then sent for Banu al-Najjar and said to them: Banu al-Najjar, sell this land of yours to me for some price. They replied: By Allah, we do not want any price (from you) except from Allah. Anas رضی اللہ عنہ said: I tell what this land contained. It contained the graves of the disbelievers, dung-hills, and some trees of date-palm. The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم commanded and the graves of the disbelievers were dug open, and the trees of the date-palm were cut off. The wood of the date-palm were erected in front of the mosque ; the door-steps were built of stone. They were reciting verses carrying the stones. The Prophet صلی ‌اللہ ‌علیہ ‌وسلم also joined them (in reciting verses) saying: O Allah, there is no good except the good of the Hereafter. So grant you aid to the Ansar and the Muhajirah.

— Anas bin Malik رضی اللہ عنہ reported

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، ‏‏‏‏‏‏حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، ‏‏‏‏‏‏عَنْ أَبِي التَّيَّاحِ، ‏‏‏‏‏‏عَنْ أَنَسِ بْنِ مَالِكٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ كَانَ مَوْضِعُ الْمَسْجِدِ حَائِطًا لِبَنِي النَّجَّارِ فِيهِ حَرْثٌ وَنَخْلٌ وَقُبُورُ الْمُشْرِكِينَ، ‏‏‏‏‏‏فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ ثَامِنُونِي بِهِ، ‏‏‏‏‏‏فَقَالُوا:‏‏‏‏ لَا نَبْغِي بِهِ ثَمَنًا، ‏‏‏‏‏‏فَقُطِعَ النَّخْلُ وَسُوِّيَ الْحَرْثُ وَنُبِشَ قُبُورُ الْمُشْرِكِينَ، ‏‏‏‏‏‏وَسَاقَ الْحَدِيثَ، ‏‏‏‏‏‏وَقَالَ:‏‏‏‏ فَاغْفِرْ مَكَانَ فَانْصُرْ، ‏‏‏‏‏‏قَالَمُوسَى:‏‏‏‏ وَحَدَّثَنَا عَبْدُ الْوَارِثِ بِنَحْوِهِ، ‏‏‏‏‏‏وَكَانَ عَبْدُ الْوَارِثِ، ‏‏‏‏‏‏يَقُولُ:‏‏‏‏ خَرِبٌ، ‏‏‏‏‏‏وَزَعَمَ عَبْدُ الْوَارِثِ أَنَّهُ أَفَادَ حَمَّادًا هَذَا الْحَدِيثَ.

The Mosque (of the Prophet) was built in the land of Banu al-Najjar which contained crops, palm trees and graves of the disbelievers. The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم said: Sell it to me for some price. They (Banu al-Najjar) replied: We do not want (any price). The palm-trees were cut off, and the crops removed and the graves of the disbelievers dug opened. He then narrated the rest of the tradition. But this version has the word forgive in the verse, instead of the word help . Musa said: Abdul-Warith also narrated this tradition in a like manner. The version of Abdul-Warith has the word dung-hill (instead of crop), and he asserted that he narrated this tradition to Hammad.

— Anas bin Malik رضی اللہ عنہ said

حَدَّثَنَا مُحَمَّدُ بْنُ الْعَلَاءِ، ‏‏‏‏‏‏حَدَّثَنَا حُسَيْنُ بْنُ عَلِيٍّ، ‏‏‏‏‏‏عَنْ زَائِدَةَ، ‏‏‏‏‏‏عَنْ هِشَامِ بْنِ عُرْوَةَ، ‏‏‏‏‏‏عَنْ أَبِيهِ، ‏‏‏‏‏‏عَنْ عَائِشَةَ، ‏‏‏‏‏‏قَالَتْ:‏‏‏‏ أَمَرَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِبِنَاءِ الْمَسَاجِدِ فِي الدُّورِ وَأَنْ تُنَظَّفَ وَتُطَيَّبَ .

The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم commanded us to build mosques in different localities (i.e. in the locality of each tribe separately) and that they should be kept clean and be perfumed.

— Narrated Aishah, Ummul Muminin رضی اللہ عنہا

حَدَّثَنَا مُحَمَّدُ بْنُ دَاوُدَ بْنِ سُفْيَانَ، ‏‏‏‏‏‏حَدَّثَنَا يَحْيَى يَعْنِي ابْنَ حَسَّانَ، ‏‏‏‏‏‏حَدَّثَنَا سُلَيْمَانُ بْنُ مُوسَى، ‏‏‏‏‏‏حَدَّثَنَا جَعْفَرُ بْنُ سَعْدِ بْنِ سَمُرَةَ، ‏‏‏‏‏‏حَدَّثَنِي خُبَيْبُ بْنُ سُلَيْمَانَ، ‏‏‏‏‏‏عَنْ أَبِيهِ سُلَيْمَانَ بْنِ سَمُرَةَ، ‏‏‏‏‏‏عَنْ أَبِيهِ سَمُرَةَ، ‏‏‏‏‏‏أَنَّهُ كَتَبَ إِلَى ابْنِهِ، ‏‏‏‏‏‏أَمَّا بَعْدُ، ‏‏‏‏‏‏ فَإِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَأْمُرُنَا بِالْمَسَاجِدِ أَنْ نَصْنَعَهَا فِي دِيَارِنَا وَنُصْلِحَ صَنْعَتَهَا وَنُطَهِّرَهَا .

He wrote (a letter) to his sons: After (praising Allah and blessing the Prophet) that: The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم used to command us to build mosques in our localities and keep them well and clean.

— Samurah reported

حَدَّثَنَا النُّفَيْلِيُّ ، حَدَّثَنَا مِسْكِينٌ، ‏‏‏‏‏‏عَنْ سَعِيدِ بْنِ عَبْدِ الْعَزِيزِ، ‏‏‏‏‏‏عَنْ زِيَادِ بْنِ أَبِي سَوْدَةَ، ‏‏‏‏‏‏عَنْ مَيْمُونَةَ مَوْلَاةِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏أَنَّهَا قَالَتْ:‏‏‏‏ يَا رَسُولَ اللَّهِ، ‏‏‏‏‏‏أَفْتِنَا فِي بَيْتِ الْمَقْدِسِ، ‏‏‏‏‏‏فَقَالَ:‏‏‏‏ ائْتُوهُ فَصَلُّوا فِيهِ، ‏‏‏‏‏‏وَكَانَتِ الْبِلَادُ إِذْ ذَاكَ حَرْبًا، ‏‏‏‏‏‏فَإِنْ لَمْ تَأْتُوهُ وَتُصَلُّوا فِيهِ، ‏‏‏‏‏‏فَابْعَثُوا بِزَيْتٍ يُسْرَجُ فِي قَنَادِيلِهِ .

I said: Messenger of Allah ﷺ, tell us the legal injunction about (visiting) Bayt al-Muqaddas (the dome of the Rock at Jerusalem). The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم said: go and pray there. All the cities at that time were effected by war. If you cannot visit it and pray there, then send some oil to be used in the lamps.

— Narrated Maymunah Ibn Saad

حَدَّثَنَا سَهْلُ بْنُ تَمَّامِ بْنِ بَزِيعٍ، ‏‏‏‏‏‏حَدَّثَنَا عُمَرُ بْنُ سُلَيْمٍ الْبَاهِلِيُّ، ‏‏‏‏‏‏عَنْ أَبِي الْوَلِيدِ، ‏‏‏‏‏‏سَأَلْتُ ابْنَ عُمَرَ عَنِ الْحَصَى الَّذِي فِي الْمَسْجِدِ، ‏‏‏‏‏‏فَقَالَ:‏‏‏‏ مُطِرْنَا ذَاتَ لَيْلَةٍ فَأَصْبَحَتِ الْأَرْضُ مُبْتَلَّةً فَجَعَلَ الرَّجُلُ يَأْتِي بِالْحَصَى فِي ثَوْبِهِ فَيَبْسُطُهُ تَحْتَهُ، ‏‏‏‏‏‏فَلَمَّا قَضَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الصَّلَاةَ قَالَ:‏‏‏‏ مَا أَحْسَنَ هَذَا .

I asked Ibn Umar رضی اللہ عنہما about the gravel spread pin the mosque. He replied: One night the rain fell and the earth was moistened. A man was bringing the gravel (broken stones) in his cloth and spreading it beneath him. When the Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم finished his prayer, he said: How fine it is!

— Abu al-Walid said

حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، ‏‏‏‏‏‏حَدَّثَنَا أَبُو مُعَاوِيَةَ، ‏‏‏‏‏‏وَوَكِيعٌ، ‏‏‏‏‏‏قَالَا:‏‏‏‏ حَدَّثَنَا الْأَعْمَشُ، ‏‏‏‏‏‏عَنْ أَبِي صَالِحٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ كَانَ يُقَالُ إِنَّ الرَّجُلَ إِذَا أَخْرَجَ الْحَصَى مِنَ الْمَسْجِدِ يُنَاشِدُهُ .

It was said that when a man removed gravels from the mosque, they adjured him.

— Abu Salih said

حَدَّثَنَا مُحَمَّدُ بْنُ إِسْحَاقَ أَبُو بَكْرٍ يَعْنِي الصَّاغَانِيَّ، ‏‏‏‏‏‏حَدَّثَنَا أَبُو بَدْرٍ شُجَاعُ بْنُ الْوَلِيدِ، ‏‏‏‏‏‏حَدَّثَنَا شَرِيكٌ، ‏‏‏‏‏‏حَدَّثَنَا أَبُو حُصَيْنٍ، ‏‏‏‏‏‏عَنْ أَبِي صَالِحٍ، ‏‏‏‏‏‏عَنْ أَبِي هُرَيْرَةَ، ‏‏‏‏‏‏قَالَ أَبُو بَدْرٍ:‏‏‏‏ أُرَاهُ قَدْ رَفَعَهُ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ إِنَّ الْحَصَاةَ لَتُنَاشِدُ الَّذِي يُخْرِجُهَا مِنَ الْمَسْجِدِ .

(Abu Bakr رضی اللہ عنہ said that in his opinion he narrated this tradition from the Prophet ﷺ): The Messenger of Allah ﷺ The gravels adjure the person when removes them from the mosque.

— Abu Hurairah رضی اللہ عنہ reported

حَدَّثَنَا عَبْدُ الْوَهَّابِ بْنُ عَبْدِ الْحَكَمِ الْخَزَّازُ، ‏‏‏‏‏‏أَخْبَرَنَا عَبْدُ الْمَجِيدِ بْنُ عَبْدِ الْعَزِيزِ بْنِ أَبِي رَوَّادٍ، ‏‏‏‏‏‏عَنْ ابْنِ جُرَيْجٍ، ‏‏‏‏‏‏عَنْ الْمُطَّلِبِ بْنِ عَبْدِ اللَّهِ بْنِ حَنْطَبٍ، ‏‏‏‏‏‏عَنْ أَنَسِ بْنِ مَالِكٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ عُرِضَتْ عَلَيَّ أُجُورُ أُمَّتِي حَتَّى الْقَذَاةُ يُخْرِجُهَا الرَّجُلُ مِنَ الْمَسْجِدِ، ‏‏‏‏‏‏وَعُرِضَتْ عَلَيَّ ذُنُوبُ أُمَّتِي فَلَمْ أَرَ ذَنْبًا أَعْظَمَ مِنْ سُورَةٍ مِنَ الْقُرْآنِ أَوْ آيَةٍ أُوتِيَهَا رَجُلٌ ثُمَّ نَسِيَهَا .

The Prophet صلی ‌اللہ ‌علیہ ‌وسلم said: The rewards of my people were presented before me, so much so that even the reward for removing a mote by a person from the mosque was presented to me. The sins of my people were also presented before me. I did not find a sin greater than that of a person forgetting the Quranic chapter or verse memorised by him.

— Narrated Anas Ibn Malik رضی اللہ عنہ

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ عَمْرٍو، ‏‏‏‏‏‏وَأَبُو مَعْمَرٍ، ‏‏‏‏‏‏حَدَّثَنَا عَبْدُ الْوَارِثِ، ‏‏‏‏‏‏حَدَّثَنَا أَيُّوبُ، ‏‏‏‏‏‏عَنْ نَافِعٍ، ‏‏‏‏‏‏عَنِ ابْنِ عُمَرَ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ لَوْ تَرَكْنَا هَذَا الْبَابَ لِلنِّسَاءِ ، ‏‏‏‏‏‏قَالَ نَافِعٌ:‏‏‏‏ فَلَمْ يَدْخُلْ مِنْهُ ابْنُ عُمَرَ حَتَّى مَاتَ، ‏‏‏‏‏‏وَقَالَ غَيْرُ عَبْدِ الْوَارِثِ:‏‏‏‏ قَالَ عُمَرُ:‏‏‏‏ وَهُوَ أَصَحُّ.

The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم as saying: If we left this door for women (it would have been better). Nafi said: Ibn Umar رضی اللہ عنہ did not enter (the door) until his death. The other except Abdul-Warith رضی اللہ عنہما said: This was said by Umar رضی اللہ عنہ (and not by Ibn Umar رضی اللہ عنہ) and that is more correct.

— Ibn Umar رضی اللہ عنہما reported

حَدَّثَنَا مُحَمَّدُ بْنُ قُدَامَةَ بْنِ أَعْيَنَ، ‏‏‏‏‏‏حَدَّثَنَا إِسْمَاعِيلُ، ‏‏‏‏‏‏عَنْ أَيُّوبَ، ‏‏‏‏‏‏عَنْ نَافِعٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ قَالَ عُمَرُ بْنُ الْخَطَّابِ رَضِيَ اللَّهُ عَنْهُ، ‏‏‏‏‏‏بِمَعْنَاهُ، ‏‏‏‏‏‏وَهُوَ أَصَحُّ.

This tradition has been reported by Umar bin al-Khattab رضی اللہ عنہ through a different chain of narrators. He narrated it to the same effect and that is more correct.

حَدَّثَنَا قُتَيْبَةُ يَعْنِي ابْنَ سَعِيدٍ، ‏‏‏‏‏‏حَدَّثَنَا بَكْرٌ يَعْنِي ابْنَ مُضَرَ، ‏‏‏‏‏‏عَنْ عَمْرِو بْنِ الْحَارِثِ، ‏‏‏‏‏‏عَنْ بُكَيْرٍ، ‏‏‏‏‏‏عَنْ نَافِعٍ، ‏‏‏‏‏‏ أَنَّعُمَرَ بْنَ الْخَطَّابِ كَانَ يَنْهَى أَنْ يُدْخَلَ مِنْ بَابِ النِّسَاءِ .

Umar bin al-Khattab رضی اللہ عنہ used to prohibit (men) to enter through the door reserved for women.

— Nafi said

حَدَّثَنَا مُحَمَّدُ بْنُ عُثْمَانَ الدِّمَشْقِيُّ، ‏‏‏‏‏‏حَدَّثَنَا عَبْدُ الْعَزِيزِ يَعْنِي الدَّرَاوَرْدِيَّ، ‏‏‏‏‏‏عَنْ رَبِيعَةَ بْنِ أَبِي عَبْدِ الرَّحْمَنِ، ‏‏‏‏‏‏عَنْ عَبْدِ الْمَلِكِ بْنِ سَعِيدِ بْنِ سُوَيْدٍ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ سَمِعْتُ أَبَا حُمَيْدٍ، ‏‏‏‏‏‏أَوْ أَبَا أُسَيْدٍ الْأَنْصَارِيَّ، ‏‏‏‏‏‏يَقُولُ:‏‏‏‏ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيُسَلِّمْ عَلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏ثُمَّ لِيَقُلْ:‏‏‏‏ اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ، ‏‏‏‏‏‏فَإِذَا خَرَجَ فَلْيَقُلْ:‏‏‏‏ اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ

The Messenger of Allah صلی ‌اللہ ‌علیہ ‌وسلم as saying: when any of you enters the mosque he should invoke blessing on the prophet صلی ‌اللہ ‌علیہ ‌وسلم and then he should say: O Allah, open to me the gates of thy mercy. And when he goes out, he should say: O Allah, I ask thee out of Thine abundance.

— Abu Usaid al-Ansari reported