King James Version
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;English Standard Version
"When heaven is shut up and there is no rain because they have sinned against you, if they pray toward this place and acknowledge your name and turn from their sin, when you afflict them,Catholic Public Domain Version
If the heavens have been closed, so that rain does not fall, because of the sin of the people, and if they will petition you in this place, and confess to your name, and be converted from their sins when you will afflict them