Urwah bin al-Zubayr reports from one of the Companions that he said: The Prophet (peace and blessings be upon him) used to command us to build mosques in our neighbourhoods, to build them well, and to keep them clean and pure.
Ahmad recorded it, and its chain is sahih (authentic).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 1963