Ayesha reported,

The Messenger of Allah ﷺ ordered that mosques be built in the dwellings, and that they be kept clean and perfumed.Sufyan said, regarding the phrase "the building of mosques in the dwellings," that it means among the tribes.

Tirmidhi 596

Sahih

حدثنا ابن أبي عمر حدثنا سفيان بن عيينة عن هشام بن عروة عن أبيه أن النبي ﷺ أمر فذكر نحوه و قال سفيان قوله ببناء المساجد في الدور يعني القبائل

الترمذي 596صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Travel
Chapter
Perfuming the mosques
Numbering
Darussalam 596
Tirmidhi 596