The Messenger of Allah ﷺ said:

When a people break their covenant, mass killing occurs among them. When immorality becomes widespread among a people, Allah Almighty subjects them to death. And when a people withhold payment of zakat, Allah withholds rain from them.

(As-Silsilah as-Sahihah, 1783)