2 Chronicles 6:26

If the heavens should become shut up, that there be no rain because they have sinned against thee; yet if they pray in this place and confess thy name and become converted from their sins when thou dost afflict them,

Leviticus 26:19

And I will break the pride of your stronghold, and I will make your heaven as iron and your earth as bronze.

Deuteronomy 11:17

and then the LORD's wrath be kindled against you and he shut up the heavens, 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 gives you.

Deuteronomy 28:23

And thy heavens which are over thy head shall be brass, and the earth that is under thee shall be iron.

1 Kings 17:1-18

Then Elijah, the Tishbite, who was of the inhabitants of Gilead, said unto Ahab, As the LORD God of Israel lives, before whom I stand, there shall not be dew nor rain these years, but according to my word.

2 Chronicles 33:12-13

And when he was in affliction, he besought the LORD his God and humbled himself greatly before the God of his fathers,

Proverbs 28:13

He that covers his sins shall not prosper, but whosoever confesses and forsakes them shall attain mercy.

Isaiah 5:6

And I will lay it waste; it shall not be pruned, nor hoed; but briers and thorns shall come up there; I will even command the clouds that they rain no rain upon it.

Isaiah 50:1-2

Thus saith the LORD, Where is the bill of your mother's divorce, whom I have put away? or which of my creditors is it to whom I have sold you? Behold, for your iniquities ye are sold, and for your rebellions was your mother put away,

Jeremiah 14:1-9

The word of the LORD that was given to Jeremiah concerning the famine.

Ezekiel 14:13

Son of man, when the land sins against me by rebelling blatantly and I stretch out my hand upon her and break the staff of the bread thereof and send famine upon her and cut off man and beast out of her

Ezekiel 18:27-32

Again, when the wicked man leaves his wickedness that he has committed and lives according to judgment and righteousness, he shall cause his soul to live.

Hosea 5:15-1

I will go and return to my place until they acknowledge their guilt and seek my face; in their affliction they will seek me early.

Joel 1:13-20

Gird yourselves, and lament, ye priests: howl, ye ministers of the altar: come, lie all night in sackcloth, ye ministers of my God: for the present and the drink offering is taken away from the house of your God.

Joel 2:15-17

Blow the shofar in Zion, sanctify a fast, call a solemn assembly:

Amos 4:4-9

Go to Bethel, and transgress; at Gilgal increase the rebellion; and bring your sacrifices early in the morning and your tithes every three years:

Luke 4:25

But I tell you of a truth, many widows were in Israel in the days of Elijah, when the heaven was shut up three years and six months, when great famine was throughout all the land,

Revelation 11:6

These have power to shut the heaven, that it not rain in the days of their prophecy and have power over the waters to turn them to blood and to smite the earth with all plagues, as often as they will.

Treasury of Scripture Knowledge

Summary

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;

Bible References

The heaven

Leviticus 26:19
And I will break the pride of your stronghold, and I will make your heaven as iron and your earth as bronze.
Deuteronomy 11:17
and then the LORD's wrath be kindled against you and he shut up the heavens, 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 gives you.
Deuteronomy 28:23
And thy heavens which are over thy head shall be brass, and the earth that is under thee shall be iron.
Luke 4:25
But I tell you of a truth, many widows were in Israel in the days of Elijah, when the heaven was shut up three years and six months, when great famine was throughout all the land,

There is no rain

Isaiah 50:1
Thus saith the LORD, Where is the bill of your mother's divorce, whom I have put away? or which of my creditors is it to whom I have sold you? Behold, for your iniquities ye are sold, and for your rebellions was your mother put away,
Isaiah 5:6
And I will lay it waste; it shall not be pruned, nor hoed; but briers and thorns shall come up there; I will even command the clouds that they rain no rain upon it.
Ezekiel 14:13
Son of man, when the land sins against me by rebelling blatantly and I stretch out my hand upon her and break the staff of the bread thereof and send famine upon her and cut off man and beast out of her
Amos 4:4
Go to Bethel, and transgress; at Gilgal increase the rebellion; and bring your sacrifices early in the morning and your tithes every three years:
Revelation 11:6
These have power to shut the heaven, that it not rain in the days of their prophecy and have power over the waters to turn them to blood and to smite the earth with all plagues, as often as they will.

Turn

Proverbs 28:13
He that covers his sins shall not prosper, but whosoever confesses and forsakes them shall attain mercy.
Ezekiel 18:27
Again, when the wicked man leaves his wickedness that he has committed and lives according to judgment and righteousness, he shall cause his soul to live.

Thou dost

2 Chronicles 33:12
And when he was in affliction, he besought the LORD his God and humbled himself greatly before the God of his fathers,
Hosea 5:15
I will go and return to my place until they acknowledge their guilt and seek my face; in their affliction they will seek me early.
Hosea 6:1
Come, and let us return unto the LORD; for he has torn, and he will heal us; he has smitten, and he will bind us up.