
Of course, before the worldwide flood in Noah’s time, there was NO RAIN. Genesis 7. And then the rain was sent because of SIN, the evil of all mankind Genesis 6:5-6. God put a rainbow in the sky as a promise not to flood the earth again, but would withhold rain.
Moses warned the children of Israel
Deuteronomy 11:17 And then the LORD’s wrath be kindled against you, and he shut up the heaven, that there be no rain, and that the land yield not her fruit; and lest ye perish quickly from off the good land which the LORD giveth you.
Solomon also warned them, what God could do
1 Kings 8:35 When heaven is shut up, and there is no rain, because they have sinned against thee; if they pray toward this place, and confess thy name, and turn from their sin, when thou afflictest them:
2 Chronicles 6:26 When the heaven is shut up, and there is no rain, because they have sinned against thee; yet if they pray toward this place, and confess thy name, and turn from their sin, when thou dost afflict them;
2 Chronicles 7:13 If I shut up heaven that there be no rain, or if I command the locusts to devour the land, or if I send pestilence among my people;
During Elijahs time God withheld the rain
1 Kings 17:7 And it came to pass after a while, that the brook dried up, because there had been no rain in the land.
Isaiah also warned the inhabitants of Jerusalem of Gods word
Isaiah 5:6 And I will lay it waste: it shall not be pruned, nor digged; but there shall come up briers and thorns: I will also command the clouds that they rain no rain upon it.
During Jeremiah time
Jeremiah 14:4 Because the ground is chapt, for there was no rain in the earth, the plowmen were ashamed, they covered their heads.
Zechariah warned of coming events
Zechariah 14:17-18 And it shall be, that whoso will not come up of all the families of the earth unto Jerusalem to worship the King, the LORD of hosts, even upon them shall be no rain. And if the family of Egypt go not up, and come not, that have no rain; there shall be the plague, wherewith the LORD will smite the heathen that come not up to keep the feast of tabernacles.
It would appear God uses weather to punish SIN.
See Weather