1 Kings 8:43-46 English Revised Version (ERV)

43. hear thou in heaven thy dwelling place, and do according to all that the stranger calleth to thee for; that all the peoples of the earth may know thy name, to fear thee, as doth thy people Israel, and that they may know that this house which I have built is called by thy name.

44. If thy people go out to battle against their enemy, by whatsoever way thou shalt send them, and they pray unto the LORD toward the city which thou hast chosen, and toward the house which I have built for thy name:

45. then hear thou in heaven their prayer and their supplication, and maintain their cause.

46. If they sin against thee, (for there is no man that sinneth not,) and thou be angry with them, and deliver them to the enemy, so that they carry them away captive unto the land of the enemy, far off or near;

1 Kings 8