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,
AKJV
When heaven is shut up, and there is no rain, because they have sinned against you; if they pray toward this place, and confess your name, and turn from their sin, when you afflict them:
CPDV
And if the heavens have closed, so that there is no rain, because of their sins, and they, praying in this place, shall do penance to your name, and shall be converted from their sins, by occasion of their afflictions,
ERV
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 dost afflict them:
NHEB
"When the sky is shut up, and there is no rain, because they have sinned against you; if they pray toward this place, and confess your name, and turn from their sin, when you punish them:
SMT
In the heavens being shut up and there will be no rain when they shall sin against thee; and they pray to this place and profess thy name, and they turn back from their sin when thou shalt humble them: