2 Chronicles 6:18-40 New Revised Standard Version (NRSV)
18 “But will God indeed reside with mortals on earth? Even heaven and the highest heaven cannot contain you, how much less this house that I have built! 19 Regard your servant’s prayer and his plea, O Lord my God, heeding the cry and the prayer that your servant prays to you. 20 May your eyes be open day and night toward this house, the place where you promised to set your name, and may you heed the prayer that your servant prays toward this place. 21 And hear the plea of your servant and of your people Israel, when they pray toward this place; may you hear from heaven your dwelling place; hear and forgive.
22 “If someone sins against another and is required to take an oath and comes and swears before your altar in this house, 23 may you hear from heaven, and act, and judge your servants, repaying the guilty by bringing their conduct on their own head, and vindicating those who are in the right by rewarding them in accordance with their righteousness.
24 “When your people Israel, having sinned against you, are defeated before an enemy but turn again to you, confess your name, pray and plead with you in this house, 25 may you hear from heaven, and forgive the sin of your people Israel, and bring them again to the land that you gave to them and to their ancestors.
26 “When heaven is shut up and there is no rain because they have sinned against you, and then they pray toward this place, confess your name, and turn from their sin, because you punish them, 27 may you hear in heaven, forgive the sin of your servants, your people Israel, when you teach them the good way in which they should walk; and send down rain upon your land, which you have given to your people as an inheritance.
28 “If there is famine in the land, if there is plague, blight, mildew, locust, or caterpillar; if their enemies besiege them in any of the settlements of the lands; whatever suffering, whatever sickness there is; 29 whatever prayer, whatever plea from any individual or from all your people Israel, all knowing their own suffering and their own sorrows so that they stretch out their hands toward this house; 30 may you hear from heaven, your dwelling place, forgive, and render to all whose heart you know, according to all their ways, for only you know the human heart. 31 Thus may they fear you and walk in your ways all the days that they live in the land that you gave to our ancestors.
32 “Likewise when foreigners, who are not of your people Israel, come from a distant land because of your great name, and your mighty hand, and your outstretched arm, when they come and pray toward this house, 33 may you hear from heaven your dwelling place, and do whatever the foreigners ask of you, in order that all the peoples of the earth may know your name and fear you, as do your people Israel, and that they may know that your name has been invoked on this house that I have built.
34 “If your people go out to battle against their enemies, by whatever way you shall send them, and they pray to you toward this city that you have chosen and the house that I have built for your name, 35 then hear from heaven their prayer and their plea, and maintain their cause.
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.