2 Chronicles 6:36-42

36 "If they sin against you—for there is no one who does not sin—and you are angry with them and give them to an enemy, so that they are carried away captive to a land far or near;
37 then if they come to their senses in the land to which they have been taken captive, and repent, and plead with you in the land of their captivity, saying, "We have sinned, and have done wrong; we have acted wickedly';
38 if they repent with all their heart and soul in the land of their captivity, to which they were taken captive, and pray toward their land, which you gave to their ancestors, the city that you have chosen, and the house that I have built for your name,
39 then hear from heaven your dwelling place their prayer and their pleas, maintain their cause and forgive your people who have sinned against you.
40 Now, O my God, let your eyes be open and your ears attentive to prayer from this place.
41 "Now rise up, O Lord God, and go to your resting place, you and the ark of your might. Let your priests, O Lord God, be clothed with salvation, and let your faithful rejoice in your goodness.
42 O Lord God, do not reject your anointed one. Remember your steadfast love for your servant David."
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.