2 Chronicles 6:29-39 MSG

29 any prayer that's prayed from anyone at all among your people Israel, their hearts penetrated by disaster, hands and arms thrown out for help to this Temple,
30 Listen from your home in heaven, forgive and reward us: reward each life and circumstance, For you know each life from the inside, (you're the only one with such inside knowledge!),
31 So they'll live before you in lifelong reverence and believing obedience on this land you gave our ancestors.
32 And don't forget the foreigner who is not a member of your people Israel but has come from a far country because of your reputation - people are going to be attracted here by your great reputation, your wonderworking power - and who come to pray to this Temple.
33 Listen from your home in heaven and honor the prayers of the foreigner, So that people all over the world will know who you are and what you're like, And live in reverent obedience before you, just as your own people Israel do, So they'll know that you personally make this Temple that I've built what it is.
34 When your people go to war against their enemies at the time and place you send them and they pray to God toward the city you chose and The Temple I've built to honor your Name,
35 Listen from heaven to what they pray and ask for and do what is right for them.
36 When they sin against you - and they certainly will; there's no one without sin! - and in anger you turn them over to the enemy and they are taken off captive to the enemy's land, whether far or near,
37 but then repent in the country of their captivity and pray with changed hearts in their exile, "We've sinned; we've done wrong; we've been most wicked,"
38 and they turn back to you heart and soul in the land of the enemy who conquered them, and pray to you toward their homeland, the land you gave their ancestors, toward the city you chose, and this Temple I have built to the honor of your Name,
39 Listen from your home in heaven to their prayers desperate and devout; Do what is best for them. Forgive your people who have sinned against you.