Sunan an-Nasa'i, Book 8, Hadith 2 (Nasa'i 691)

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."