Then Solomon stood before the altar of the Lord in the presence of all the assembly of Israel, and spread out his hands to heaven.
He said, "O Lord, God of Israel, there is no God like you in heaven above or on earth beneath, keeping covenant and steadfast love for your servants who walk before you with all their heart,
the covenant that you kept for your servant my father David as you declared to him; you promised with your mouth and have this day fulfilled with your hand.
Therefore, O Lord, God of Israel, keep for your servant my father David that which you promised him, saying, "There shall never fail you a successor before me to sit on the throne of Israel, if only your children look to their way, to walk before me as you have walked before me.'
Therefore, O God of Israel, let your word be confirmed, which you promised to your servant my father David.
"But will God indeed dwell on the earth? Even heaven and the highest heaven cannot contain you, much less this house that I have built!
Regard your servant's prayer and his plea, O Lord my God, heeding the cry and the prayer that your servant prays to you today;
that your eyes may be open night and day toward this house, the place of which you said, "My name shall be there,' that you may heed the prayer that your servant prays toward this place.
Hear the plea of your servant and of your people Israel when they pray toward this place; O hear in heaven your dwelling place; heed and forgive.
"If someone sins against a neighbor and is given an oath to swear, and comes and swears before your altar in this house,
then hear in heaven, and act, and judge your servants, condemning the guilty by bringing their conduct on their own head, and vindicating the righteous by rewarding them according to their righteousness.
"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,
then hear in heaven, forgive the sin of your people Israel, and bring them again to the land that you gave to their ancestors.
"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,
then hear in heaven, and forgive the sin of your servants, your people Israel, when you teach them the good way in which they should walk; and grant rain on your land, which you have given to your people as an inheritance.
"If there is famine in the land, if there is plague, blight, mildew, locust, or caterpillar; if their enemy besieges them in any of their cities; whatever plague, whatever sickness there is;
whatever prayer, whatever plea there is from any individual or from all your people Israel, all knowing the afflictions of their own hearts so that they stretch out their hands toward this house;
then hear in heaven your dwelling place, forgive, act, and render to all whose hearts you know—according to all their ways, for only you know what is in every human heart—
so that they may fear you all the days that they live in the land that you gave to our ancestors.
"Likewise when a foreigner, who is not of your people Israel, comes from a distant land because of your name
—for they shall hear of your great name, your mighty hand, and your outstretched arm—when a foreigner comes and prays toward this house,
then hear in heaven your dwelling place, and do according to all that the foreigner calls to you, so that all the peoples of the earth may know your name and fear you, as do your people Israel, and so that they may know that your name has been invoked on this house that I have built.