22Then Solomon stood before the altar of the LORD in the presence of all the assembly of Israel and spread out his hands toward heaven.23He said, “O LORD, the God of Israel, there is no God like You in heaven above or on earth beneath, keeping covenant and showing lovingkindness to Your servants who walk before You with all their heart,24who have kept with Your servant, my father David, that which You have promised him; indeed, You have spoken with Your mouth and have fulfilled it with Your hand as it is this day.25“Now therefore, O LORD, the God of Israel, keep with Your servant David my father that which You have promised him, saying, ‘You shall not lack a man to sit on the throne of Israel, if only your sons take heed to their way to walk before Me as you have walked.’26“Now therefore, O God of Israel, let Your word, I pray, be confirmed which You have spoken to Your servant, my father David.
27“But will God indeed dwell on the earth? Behold, heaven and the highest heaven cannot contain You, how much less this house which I have built!28“Yet have regard to the prayer of Your servant and to his supplication, O LORD my God, to listen to the cry and to the prayer which Your servant prays before You today;29that Your eyes may be open toward this house night and day, toward the place of which You have said, ‘My name shall be there,’ to listen to the prayer which Your servant shall pray toward this place.30“Listen to the supplication of Your servant and of Your people Israel, when they pray toward this place; hear in heaven Your dwelling place; hear and forgive.
31“If a man sins against his neighbor and is made to take an oath, and he comes and takes an oath before Your altar in this house,32then hear in heaven and act and judge Your servants, condemning the wicked by bringing his way on his own head and justifying the righteous by giving him according to his righteousness.
33“When Your people Israel are defeated before an enemy, because they have sinned against You, if they turn to You again and confess Your name and pray and make supplication to You in this house,34then hear in heaven, and forgive the sin of Your people Israel, and bring them back to the land which You gave to their fathers.
35“When the heavens are shut up and there is no rain, because they have sinned against You, and they pray toward this place and confess Your name and turn from their sin when You afflict them,36then hear in heaven and forgive the sin of Your servants and of Your people Israel, indeed, teach them the good way in which they should walk. And send rain on Your land, which You have given Your people for an inheritance.
37“If there is famine in the land, if there is pestilence, if there is blight or mildew, locust or grasshopper, if their enemy besieges them in the land of their cities, whatever plague, whatever sickness there is,38whatever prayer or supplication is made by any man or by all Your people Israel, each knowing the affliction of his own heart, and spreading his hands toward this house;39then hear in heaven Your dwelling place, and forgive and act and render to each according to all his ways, whose heart You know, for You alone know the hearts of all the sons of men,40that they may fear You all the days that they live in the land which You have given to our fathers.
41“Also concerning the foreigner who is not of Your people Israel, when he comes from a far country for Your name’s sake42(for they will hear of Your great name and Your mighty hand, and of Your outstretched arm); when he comes and prays toward this house,43hear in heaven Your dwelling place, and do according to all for which the foreigner calls to You, in order that all the peoples of the earth may know Your name, to fear You, as do Your people Israel, and that they may know that this house which I have built is called by Your name.