Hadithcore
Mishkat al-Masabih, 719

Anas reported God’s Messenger as saying, “One of the signs of the last hour will be that people will vie with one another about mosques. Abu Dawud, Nasa’i Darimi and Ibn Majah transmitted it.

وَعَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صلى الله عَلَيْهِ وَسلم: «من أَشْرَاطِ السَّاعَةِ أَنْ يَتَبَاهَى النَّاسُ فِي الْمَسَاجِدِ» . رَوَاهُ أَبُو دَاوُدَ وَالنَّسَائِيُّ وَالدَّارِمِيُّ وَابْنُ مَاجَهْ

References1 variant
In-Book Reference
Book 4, Hadith 149