2 Chronicles 6:33-42

33 then hear [them] in heaven, the place where you live. Do everything they ask you so that all the people of the world may know your name and fear you like your people Israel and learn that this temple which I built bears your name.
34 "When your people go to war against their enemies (wherever you may send them) and they pray to you toward this city you have chosen and the temple I built for your name,
35 then hear their prayer for mercy in heaven, and do what is right [for them].
36 "They may sin against you. (No one is sinless.) You may become angry with them and hand them over to an enemy who takes them to [another] country as captives, [whether it is] far or near.
37 If they come to their senses, are sorry for what they've done, and plead with you in the land where they are captives, saying, 'We have sinned. We have done wrong. We have been wicked,'
38 if they change their attitude toward you in the land where they are captives, if they pray to you toward the land that you gave their ancestors, and the city you have chosen, and the temple I have built for your name,
39 then in heaven, the place where you live, hear their prayer for mercy. Do what is right for them. Forgive your people, who have sinned against you.
40 "Finally, my God, may your eyes be open and your ears attentive to the prayers [offered] in this place.
41 "Now arise, and come to your resting place, LORD God-- you and the ark of your power. Clothe your priests, LORD God, with salvation. Let your godly ones rejoice in what is good.
42 LORD God, do not reject your anointed one. Remember your mercy to your servant David!"