"When famine or plague comes to the land, or blight or mildew, locusts or grasshoppers, or when an enemy besieges 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 the afflictions of his own heart, and spreading out his hands toward this temple--
then hear from heaven, your dwelling place. Forgive and act; deal with each man according to all he does, since you know his heart (for you alone know the hearts of all men),
so that they will fear you 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 name--
for men will hear 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 the LORD toward the 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 his own 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 conquerors and say, 'We have sinned, we have done wrong, we have acted wickedly';
and if they turn back to you with all their heart and soul in the land of their enemies who took them captive, and pray to you toward the land you gave their fathers, toward the city you have chosen and the temple I have built for your Name;
then from heaven, your dwelling place, hear their prayer and their plea, and uphold their cause.
And forgive your people, who have sinned against you; forgive all the offenses they have committed against you, and cause their conquerors to show them mercy;
for they are your people and your inheritance, whom you brought out of Egypt, out of that iron-smelting furnace.
"May your eyes be open to your servant's plea and to the plea of your people Israel, and may you listen to them whenever they cry out to you.
For you singled them out from all the nations of the world to be your own inheritance, just as you declared through your servant Moses when you, O Sovereign LORD, brought our fathers out of Egypt."
When Solomon had finished all these prayers and supplications to the LORD, he rose from before the altar of the LORD, where he had been kneeling with his hands spread out toward heaven.
He stood and blessed the whole assembly of Israel in a loud voice, saying:
"Praise be to the LORD, who has given rest to his people Israel just as he promised. Not one word has failed of all the good promises he gave through his servant Moses.
May the LORD our God be with us as he was with our fathers; may he never leave us nor forsake us.
May he turn our hearts to him, to walk in all his ways and to keep the commands, decrees and regulations he gave our fathers.
And may these words of mine, which I have prayed before the LORD, be near to the LORD our God day and night, that he may uphold the cause of his servant and the cause of his people Israel according to each day's need,
so that all the peoples of the earth may know that the LORD is God and that there is no other.
But your hearts must be fully committed to the LORD our God, to live by his decrees and obey his commands, as at this time."
Then the king and all Israel with him offered sacrifices before the LORD.
Solomon offered a sacrifice of fellowship offerings to the LORD: twenty-two thousand cattle and a hundred and twenty thousand sheep and goats. So the king and all the Israelites dedicated the temple of the LORD.
On that same day the king consecrated the middle part of the courtyard in front of the temple of the LORD, and there he offered burnt offerings, grain offerings and the fat of the fellowship offerings, because the bronze altar before the LORD was too small to hold the burnt offerings, the grain offerings and the fat of the fellowship offerings.
So Solomon observed the festival at that time, and all Israel with him--a vast assembly, people from Lebo Hamath to the Wadi of Egypt. They celebrated it before the LORD our God for seven days and seven days more, fourteen days in all.
On the following day he sent the people away. They blessed the king and then went home, joyful and glad in heart for all the good things the LORD had done for his servant David and his people Israel.