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.
"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,
then hear their prayer for mercy in heaven, and do what is right [for them].
"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.
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,'
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,
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.
"Finally, my God, may your eyes be open and your ears attentive to the prayers [offered] in this place.
"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.
LORD God, do not reject your anointed one. Remember your mercy to your servant David!"