31 ‘If someone sins against a neighbour and is given an oath to swear, and comes and swears before your altar in this house, 32then 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.

33 ‘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, 34then hear in heaven, forgive the sin of your people Israel, and bring them again to the land that you gave to their ancestors.

35 ‘When heaven is shut up and there is no rain because they have sinned against you, and then they pray towards this place, confess your name, and turn from their sin, because you punish them, 36then 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.

37 ‘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; 38whatever 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 towards this house; 39then 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— 40so that they may fear you all the days that they live in the land that you gave to our ancestors.

41 ‘Likewise when a foreigner, who is not of your people Israel, comes from a distant land because of your name 42—for they shall hear of your great name, your mighty hand, and your outstretched arm—when a foreigner comes and prays towards this house, 43then 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.

44 ‘If your people go out to battle against their enemy, by whatever way you shall send them, and they pray to the Lord towards the city that you have chosen and the house that I have built for your name, 45then hear in heaven their prayer and their plea, and maintain their cause.

46 ‘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 the land of the enemy, far off or near; 47and 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 captors, saying, “We have sinned, and have done wrong; we have acted wickedly”; 48if they repent with all their heart and soul in the land of their enemies, who took them captive, and pray to you towards their land, which you gave to their ancestors, the city that you have chosen, and the house that I have built for your name; 49then hear in heaven your dwelling-place their prayer and their plea, maintain their cause, 50and forgive your people who have sinned against you, and all their transgressions that they have committed against you; and grant them compassion in the sight of their captors, so that they may have compassion on them 51(for they are your people and heritage, which you brought out of Egypt, from the midst of the iron-smelter). 52Let your eyes be open to the plea of your servant, and to the plea of your people Israel, listening to them whenever they call to you. 53For you have separated them from among all the peoples of the earth, to be your heritage, just as you promised through Moses, your servant, when you brought our ancestors out of Egypt, O Lord God.’

54 Now when Solomon finished offering all this prayer and this plea to the Lord, he arose from facing the altar of the Lord, where he had knelt with hands outstretched towards heaven; 55he stood and blessed all the assembly of Israel with a loud voice:

56 ‘Blessed be the Lord, who has given rest to his people Israel according to all that he promised; not one word has failed of all his good promise, which he spoke through his servant Moses. 57The Lord our God be with us, as he was with our ancestors; may he not leave us or abandon us, 58but incline our hearts to him, to walk in all his ways, and to keep his commandments, his statutes, and his ordinances, which he commanded our ancestors. 59Let these words of mine, with which I pleaded before the Lord, be near to the Lord our God day and night, and may he maintain the cause of his servant and the cause of his people Israel, as each day requires; 60so that all the peoples of the earth may know that the Lord is God; there is no other. 61Therefore devote yourselves completely to the Lord our God, walking in his statutes and keeping his commandments, as at this day.’

62 Then the king, and all Israel with him, offered sacrifice before the Lord.