"When the heavens are shut up and there is no rain because your people have sinned against you, and when they pray toward this place and give praise to your name and turn from their sin because you have afflicted them,"
NIV
When heaven is shut up and no rain falls because they have sinned against You, if they pray in [or toward] this place and confess Your name (Your revelation of Yourself) and turn from their sin when You afflict them
AMP
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:
KJV