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