The Book of the Masjids
8/2. Chapter:
Bragging In Building Masjids
Sunan an-Nasai
أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، قَالَ أَنْبَأَنَا عَبْدُ اللَّهِ بْنُ الْمُبَارَكِ، عَنْ حَمَّادِ بْنِ سَلَمَةَ، عَنْ أَيُّوبَ، عَنْ أَبِي قِلاَبَةَ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " مِنْ أَشْرَاطِ السَّاعَةِ أَنْ يَتَبَاهَى النَّاسُ فِي الْمَسَاجِدِ " .
It was narrated from Anas that the Prophet (ﷺ) said: "One of the portents of the Hour will be that people will show off in building Masjids."
Reference : Sunan an-Nasa'i 689In-book reference : Book 8, Hadith 2English translation : Vol. 1, Book 8, Hadith 690