Sayyiduna Samurah (may Allah be pleased with him) says: The Messenger of Allah (peace and blessings be upon him) used to order us to build mosques in our neighbourhoods, to keep their construction in good order, and to keep them clean and pure.
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6996