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. (Using translation from Abū Dāʾūd 455)
أَنَّ رَسُولَ اللهِ ﷺ أَمَرَ بِبُنْيَانِ الْمَسَاجِدِ فِي الدُّورِ وَأَمَرَ بِهَا أَنْ تُنَظَّفَ وَتُطَيَّبَ