KJV
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;
BSB
When the skies are shut and there is no rain because Your people have sinned against You, and they pray toward this place and confess Your name, and they turn from their sins because You have afflicted them,