Then Solomon stood before the altar of the LORD in the presence of all the assembly of Israel, and spread forth his hands toward heaven; and said, "O LORD, God of Israel, there is no God like thee, in heaven above or on earth beneath, keeping covenant and showing steadfast love to thy servants who walk before thee with all their heart; who hast kept with thy servant David my father what thou didst declare to him; yea, thou didst speak with thy mouth, and with thy hand hast fulfilled it this day. Now therefore, O LORD, God of Israel, keep with thy servant David my father what thou hast promised him, saying, 'There shall never fail you a man before me to sit upon the throne of Israel, if only your sons take heed to their way, to walk before me as you have walked before me.' Now therefore, O God of Israel, let thy word be confirmed, which thou hast spoken to thy servant David my father.
"But will God indeed dwell 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 this day; that thy eyes may be open night and day toward this house, the place of which thou hast said, 'My name shall be there,' that thou mayest hearken to the prayer which thy servant offers toward this place. And hearken thou to the supplication of thy servant and of thy people Israel, when they pray toward this place; yea, hear thou in 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 thine altar in this house, then hear thou in heaven, and act, and judge thy servants, condemning the guilty by bringing his conduct upon his own head, and vindicating the righteous by rewarding him according to his righteousness.
"When thy people Israel are defeated before the enemy because they have sinned against thee, if they turn again to thee, and acknowledge thy name, and pray and make supplication to thee in this house; then hear thou in heaven, and forgive the sin of thy people Israel, and bring them again to the land which thou gavest 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 enemy besieges 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 the affliction of his own heart and stretching out his hands toward this house; then hear thou in heaven thy dwelling place, and forgive, and act, and render to each whose heart thou knowest, according to all his ways (for thou, thou only, knowest the hearts of all the children of men); that they may fear thee all the days that they live in the land which thou gavest to our fathers."