Asma bint Yazid reported,

Abu Dharr used to serve the Prophet ﷺ, and when he finished his service, he would retreat to the mosque, which served as his home where he slept. One night, the Messenger of Allah ﷺ came in and found Abu Dharr stretched out in the mosque. The Messenger of Allah ﷺ nudged him with his foot until he sat up.The Messenger of Allah ﷺ said to him, "Why do I find you sleeping here?"Abu Dharr replied, "Messenger of Allah, where else should I sleep? Do I have any home besides this?"He then mentioned the hadith in its full length.

Azami 3100

Hasan

عن أسماء بنت يزيد

أن أبا ذر كان يخدم النبي ﷺ، فإذا فرغ من خدمته آوى إلى المسجد، وكان هو بيته يضطجع فيه. فدخل رسول الله ﷺ ليلة فوجد أبا ذر منجدلا في المسجد فنكته رسول الله ﷺ برجله حتى استوى جالسا فقال له رسول الله ﷺ: ألا أراك نائما؟ قال أبو ذر يا رسول الله: فأين أنام وهل لي بيت غيره؟ فذكر الحديث بطوله.

الأعظمي 3100حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Men sleeping in the masjid for those who have need of it
Numbering
Jami al-Kamil 3100 (2nd edition)
Azami 3100