2 Chronicles 6:12-42 NIV
Then Solomon stood before the altar of the LORD in front of the whole assembly of Israel and spread out his hands. Now he had made a bronze platform, five cubits long, five cubits wide and three cubits high, and had placed it in the center of the outer court. He stood on the platform and then knelt down before the whole assembly of Israel and spread out his hands toward heaven. He said:
“LORD, the God of Israel, there is no God like you in heaven or on earth—you who keep your covenant of love with your servants who continue wholeheartedly in your way. You have kept your promise to your servant David my father; with your mouth you have promised and with your hand you have fulfilled it—as it is today.
“Now, LORD, the God of Israel, keep for your servant David my father the promises you made to him when you said, ‘You shall never fail to have a successor to sit before me on the throne of Israel, if only your descendants are careful in all they do to walk before me according to my law, as you have done.’ And now, LORD, the God of Israel, let your word that you promised your servant David come true.
“But will God really dwell on earth with humans? The heavens, even the highest heavens, cannot contain you. How much less this temple I have built! Yet, LORD my God, give attention to your servant’s prayer and his plea for mercy. Hear the cry and the prayer that your servant is praying in your presence. May your eyes be open toward this temple day and night, this place of which you said you would put your Name there. May you hear the prayer your servant prays toward this place. Hear the supplications of your servant and of your people Israel when they pray toward this place. Hear from heaven, your dwelling place; and when you hear, forgive.
“When anyone wrongs their neighbor and is required to take an oath and they come and swear the oath before your altar in this temple, then hear from heaven and act. Judge between your servants, condemning the guilty and bringing down on their heads what they have done, and vindicating the innocent by treating them in accordance with their innocence.
“When your people Israel have been defeated by an enemy because they have sinned against you and when they turn back and give praise to your name, praying and making supplication before you in this temple, then hear from heaven and forgive the sin of your people Israel and bring them back to the land you gave to them and their ancestors.
“When the heavens are shut up and there is no rain because your people have sinned against you, and when they pray toward this place and give praise to your name and turn from their sin because you have afflicted them, then hear from heaven and forgive the sin of your servants, your people Israel. Teach them the right way to live, and send rain on the land you gave your people for an inheritance.
“When famine or plague comes to the land, or blight or mildew, locusts or grasshoppers, or when enemies besiege them in any of their cities, whatever disaster or disease may come, and when a prayer or plea is made by anyone among your people Israel—being aware of their afflictions and pains, and spreading out their hands toward this temple— then hear from heaven, your dwelling place. Forgive, and deal with everyone according to all they do, since you know their hearts (for you alone know the human heart), so that they will fear you and walk in obedience to you all the time they live in the land you gave our ancestors.
“As for the foreigner who does not belong to your people Israel but has come from a distant land because of your great name and your mighty hand and your outstretched arm—when they come and pray toward this temple, then hear from heaven, your dwelling place. Do whatever the foreigner asks of you, so that all the peoples of the earth may know your name and fear you, as do your own people Israel, and may know that this house I have built bears your Name.
“When your people go to war against their enemies, wherever you send them, and when they pray to you toward this city you have chosen and the temple I have built for your Name, then hear from heaven their prayer and their plea, and uphold their cause.
“When they sin against you—for there is no one who does not sin—and you become angry with them and give them over to the enemy, who takes them captive to a land far away or near; and if they have a change of heart in the land where they are held captive, and repent and plead with you in the land of their captivity and say, ‘We have sinned, we have done wrong and acted wickedly’; and if they turn back to you with all their heart and soul in the land of their captivity where they were taken, and pray toward the land you gave their ancestors, toward the city you have chosen and toward the temple I have built for your Name; then from heaven, your dwelling place, hear their prayer and their pleas, and uphold their cause. And forgive your people, who have sinned against you.
“Now, my God, may your eyes be open and your ears attentive to the prayers offered in this place.
“Now arise, LORD God, and come to your resting place,
you and the ark of your might.
May your priests, LORD God, be clothed with salvation,
may your faithful people rejoice in your goodness.
LORD God, do not reject your anointed one.
Remember the great love promised to David your servant.”
NIV: New International Version