2 Chronicles 6:33-42 MSG

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.
40 And now, dear God, be alert and attentive to prayer, all prayer, offered in this place.
41 Up, God, enjoy your new place of quiet repose, you and your mighty covenant Chest; Dress your priests up in salvation clothes, let your holy people celebrate goodness.
42 And don't, God, back out on your anointed ones, keep in mind the love promised to David your servant.