It was narrated that Anas bin Malik said:
"The Messenger of Allah said: 'The Hour will not begin until the people compete in (building) mosques.'"