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.
حدثنا ابن أبي عمر حدثنا سفيان بن عيينة عن هشام بن عروة عن أبيه أن النبي ﷺ أمر فذكر نحوه و قال سفيان قوله ببناء المساجد في الدور يعني القبائل