It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The Hour will not be established until people begin to boast about mosques."
Hadith Referenceالمعجم الكبير للطبراني / باب الألف / 748