1 Kings 8:33; 1 Kings 8:35

33 When thy people Israel be smitten down before the enemy , because they have sinned against thee, and shall turn again to thee, and confess thy name, and pray , and make supplication unto thee in this house:
35 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: