It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that before the coming of the Ta'un al-Jarif (the "Sweeping Plague", a deadly epidemic that wiped out whole settlements), whenever he passed by a mosque that had been newly built, he would ask about it, and the people would tell him: "This is a mosque that such-and-such a tribe has recently built."
At this Sayyiduna Anas (may Allah be pleased with him) said that it used to be said: "A time will come upon people when they will build mosques and boast and make a show of them, then they will fill them (with remembrance and worship) only very little."
Ayyub (may Allah have mercy on him) said: "Then that all-sweeping plague came and wiped them all out."
Imam al-Bukhari (may Allah have mercy on him) narrated it as mu'allaq (without a connected chain), and this narration has also been narrated as marfu'.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الصلاة / 355
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده ضعيف. » «أخرجه ابن خزيمة فى «صحيحه» برقم: 1321، وابن حبان فى «صحيحه» برقم: 1613، والنسائي فى «المجتبیٰ» برقم: 688 ، والنسائي فى «الكبریٰ» برقم: 770، وأبو داود فى «سننه» برقم: 449، والدارمي فى «مسنده» برقم: 1448، وابن ماجه فى «سننه» برقم: 739، والبيهقي فى«سننه الكبير» برقم: 4367، وأحمد فى «مسنده» برقم: 12574، وأبو يعلى فى «مسنده» برقم: 2798، والبزار فى «مسنده» برقم: 6778، وأخرجه ابن أبى شيبة فى «مصنفه» برقم: 3163، وأخرجه الطبراني فى«الكبير» برقم: 752، وأخرجه الطبراني فى «الأوسط» برقم: 7559، 8460، وأخرجه الطبراني فى «الصغير» برقم: 1087»