2 Chronicles 6:18-31
"But will God dwell indeed with man on the earth? Behold, heaven and the highest heaven cannot contain thee; how much less this house which I have built! Yet have regard to the prayer of thy servant and to his supplication, O LORD my God, hearkening to the cry and to the prayer which thy servant prays before thee; that thy eyes may be open day and night toward this house, the place where thou hast promised to set thy name, that thou mayest hearken to the prayer which thy servant offers toward this place. And hearken thou to the supplications of thy servant and of thy people Israel, when they pray toward this place; yea, hear thou from heaven thy dwelling place; and when thou hearest, forgive.
"If a man sins against his neighbor and is made to take an oath, and comes and swears his oath before thy altar in this house, then hear thou from heaven, and act, and judge thy servants, requiting the guilty by bringing his conduct upon his own head, and vindicating the righteous by rewarding him according to his righteousness.
"If thy people Israel are defeated before the enemy because they have sinned against thee, when they turn again and acknowledge thy name, and pray and make supplication to thee in this house, then hear thou from heaven, and forgive the sin of thy people Israel, and bring them again to the land which thou gavest to them and to their fathers.
"When heaven is shut up and there is no rain because they have sinned against thee, if they pray toward this place, and acknowledge thy name, and turn from their sin, when thou dost afflict them, then hear thou in heaven, and forgive the sin of thy servants, thy people Israel, when thou dost teach them the good way in which they should walk; and grant rain upon thy land, which thou hast given to thy people as an inheritance.
"If there is famine in the land, if there is pestilence or blight or mildew or locust or caterpillar; if their enemies besiege them in any of their cities; whatever plague, whatever sickness there is; whatever prayer, whatever supplication is made by any man or by all thy people Israel, each knowing his own affliction, and his own sorrow and stretching out his hands toward this house; then hear thou from heaven thy dwelling place, and forgive, and render to each whose heart thou knowest, according to all his ways (for thou, thou only, knowest the hearts of the children of men); that they may fear thee and walk in thy ways all the days that they live in the land which thou gavest to our fathers.”