When Your people Israel are defeated before an enemy, because they have sinned against You, if they turn to You again and confess Your name and pray and make supplication to You in this house,
then hear in heaven and forgive the sin of Your servants and of Your people Israel, indeed, teach them the good way in which they should walk. And send rain on Your land, which You have given Your people for an inheritance.
whatever prayer or supplication is made by any man or by all Your people Israel, each knowing the affliction of his own heart, and spreading his hands toward this house;
1 Kings 8:44
"When your people go to war against their enemies, wherever you send them, and when they pray to the LORD toward the city you have chosen and the temple I have built for your Name
yet when they come to themselves in the land where they were carried captive, and repent, and make supplication to You in the land of those who took them captive, saying, "We have sinned and done wrong, we have committed wickedness';