"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 confess 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 any of your people Israel--each one aware of his afflictions and pains, and spreading out his hands toward this temple--
then hear from heaven, your dwelling place. Forgive, and deal with each man according to all he does, since you know his heart (for you alone know the hearts of men),
so that they will fear you and walk in your ways all the time they live in the land you gave our fathers.
"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 he comes and prays toward this temple,
then hear from heaven, your dwelling place, and 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 fathers, 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, O LORD God, and come to your resting place, you and the ark of your might. May your priests, O LORD God, be clothed with salvation, may your saints rejoice in your goodness.
O LORD God, do not reject your anointed one. Remember the great love promised to David your servant."
When Solomon finished praying, fire came down from heaven and consumed the burnt offering and the sacrifices, and the glory of the LORD filled the temple.
The priests could not enter the temple of the LORD because the glory of the LORD filled it.
When all the Israelites saw the fire coming down and the glory of the LORD above the temple, they knelt on the pavement with their faces to the ground, and they worshiped and gave thanks to the LORD, saying, "He is good; his love endures forever."
Then the king and all the people offered sacrifices before the LORD.
And King Solomon offered a sacrifice of twenty-two thousand head of cattle and a hundred and twenty thousand sheep and goats. So the king and all the people dedicated the temple of God.
The priests took their positions, as did the Levites with the LORD's musical instruments, which King David had made for praising the LORD and which were used when he gave thanks, saying, "His love endures forever." Opposite the Levites, the priests blew their trumpets, and all the Israelites were standing.
Solomon consecrated the middle part of the courtyard in front of the temple of the LORD, and there he offered burnt offerings and the fat of the fellowship offerings, because the bronze altar he had made could not hold the burnt offerings, the grain offerings and the fat portions.
So Solomon observed the festival at that time for seven days, and all Israel with him--a vast assembly, people from Lebo Hamath to the Wadi of Egypt.
On the eighth day they held an assembly, for they had celebrated the dedication of the altar for seven days and the festival for seven days more.
On the twenty-third day of the seventh month he sent the people to their homes, joyful and glad in heart for the good things the LORD had done for David and Solomon and for his people Israel.
When Solomon had finished the temple of the LORD and the royal palace, and had succeeded in carrying out all he had in mind to do in the temple of the LORD and in his own palace,
the LORD appeared to him at night and said: "I have heard your prayer and have chosen this place for myself as a temple for sacrifices.
"When I shut up the heavens so that there is no rain, or command locusts to devour the land or send a plague among my people,
if my people, who are called by my name, will humble themselves and pray and seek my face and turn from their wicked ways, then will I hear from heaven and will forgive their sin and will heal their land.