King James Version (KJV)
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:
Modern English
“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 afflict them,
Hebrew
בְּהֵעָצֵ֥ר שָׁמַ֛יִם וְלֹא־יִהְיֶ֥ה מָטָ֖ר כִּ֣י יֶחֶטְאוּ־לָ֑ךְ וְהִֽתְפַּֽלְל֞וּ אֶל־הַמָּק֤וֹם הַזֶּה֙ וְהוֹד֣וּ אֶת־שְׁמֶ֔ךָ וּמֵחַטָּאתָ֥ם יְשׁוּב֖וּן כִּ֥י תַעֲנֵֽם׃
bheʿaṣer shamayim vloʾ-yihyeh maṭar kiy yeḥeṭʾv-lak vhitpallv ʾel-hamaqvom hazeh vhvodv ʾet-shmeka vmeḥaṭaʾtam yshvbvn kiy taʿanem