Then Solomon said, "The Lord has said that he would reside in thick darkness.
I have built you an exalted house, a place for you to reside in forever."
Then the king turned around and blessed all the assembly of Israel, while all the assembly of Israel stood.
And he said, "Blessed be the Lord, the God of Israel, who with his hand has fulfilled what he promised with his mouth to my father David, saying,
"Since the day that I brought my people out of the land of Egypt, I have not chosen a city from any of the tribes of Israel in which to build a house, so that my name might be there, and I chose no one as ruler over my people Israel;
but I have chosen Jerusalem in order that my name may be there, and I have chosen David to be over my people Israel.'
My father David had it in mind to build a house for the name of the Lord, the God of Israel.
But the Lord said to my father David, "You did well to consider building a house for my name;
nevertheless you shall not build the house, but your son who shall be born to you shall build the house for my name.'
Now the Lord has fulfilled his promise that he made; for I have succeeded my father David, and sit on the throne of Israel, as the Lord promised, and have built the house for the name of the Lord, the God of Israel.
There I have set the ark, in which is the covenant of the Lord that he made with the people of Israel."
Then Solomon stood before the altar of the Lord in the presence of the whole assembly of Israel, and spread out his hands.
References for 2 Chronicles 6:12
Solomon had made a bronze platform five cubits long, five cubits wide, and three cubits high, and had set it in the court; and he stood on it. Then he knelt on his knees in the presence of the whole assembly of Israel, and spread out his hands toward heaven.
He said, "O Lord, God of Israel, there is no God like you, in heaven or on earth, keeping covenant in steadfast love with your servants who walk before you with all their heart—
you who have kept for your servant, my father David, what you promised to him. Indeed, you promised with your mouth and this day have 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 keep to their way, to walk in my law as you have walked before me.'
Therefore, O Lord, God of Israel, let your word be confirmed, which you promised to your servant David.
"But will God indeed reside with mortals on earth? Even heaven and the highest heaven cannot contain you, how 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.
May your eyes be open day and night toward this house, the place where you promised to set your name, and may you heed the prayer that your servant prays toward this place.
And hear the plea of your servant and of your people Israel, when they pray toward this place; may you hear from heaven your dwelling place; hear and forgive.
"If someone sins against another and is required to take an oath and comes and swears before your altar in this house,
may you hear from heaven, and act, and judge your servants, repaying the guilty by bringing their conduct on their own head, and vindicating those who are in the right by rewarding them in accordance with 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,
may you hear from heaven, and forgive the sin of your people Israel, and bring them again to the land that you gave to them and 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,
may you hear in heaven, forgive the sin of your servants, your people Israel, when you teach them the good way in which they should walk; and send down rain upon 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 enemies besiege them in any of the settlements of the lands; whatever suffering, whatever sickness there is;
whatever prayer, whatever plea from any individual or from all your people Israel, all knowing their own suffering and their own sorrows so that they stretch out their hands toward this house;
may you hear from heaven, your dwelling place, forgive, and render to all whose heart you know, according to all their ways, for only you know the human heart.
Thus may they fear you and walk in your ways all the days that they live in the land that you gave to our ancestors.
"Likewise when foreigners, who are not of your people Israel, 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 house,
may you hear from heaven your dwelling place, and do whatever the foreigners ask of you, in order that all the peoples of the earth may know your name and fear you, as do your people Israel, and that they may know that your name has been invoked on this house that I have built.
"If your people go out to battle against their enemies, by whatever way you shall send them, and they pray to you toward this city that you have chosen and the house that I have built for your name,
then hear from heaven their prayer and their plea, and maintain their cause.
"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 a land far or near;
then 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 captivity, saying, "We have sinned, and have done wrong; we have acted wickedly';
if they repent with all their heart and soul in the land of their captivity, to which they were taken captive, and pray toward their land, which you gave to their ancestors, the city that you have chosen, and the house that I have built for your name,
then hear from heaven your dwelling place their prayer and their pleas, maintain their cause and forgive your people who have sinned against you.
Now, O my God, let your eyes be open and your ears attentive to prayer from this place.
"Now rise up, O Lord God, and go to your resting place, you and the ark of your might. Let your priests, O Lord God, be clothed with salvation, and let your faithful rejoice in your goodness.
O Lord God, do not reject your anointed one. Remember your steadfast love for your servant David."