2 Chronicles 7:8-22Holman Christian Standard Bible (HCSB)
8 So Solomon and all Israel with him—a very great assembly, from the entrance to Hamath[a] to the Brook of Egypt—observed the festival at that time for seven days. 9 On the eighth day[b] they held a sacred assembly, for the dedication of the altar lasted seven days and the festival seven days. 10 On the twenty-third day of the seventh month he sent the people away to their tents, rejoicing and with happy hearts for the goodness the Lord had done for David, for Solomon, and for His people Israel.
11 So Solomon finished the Lord’s temple and the royal palace. Everything that had entered Solomon’s heart to do for the Lord’s temple and for his own palace succeeded.
The Lord’s Response
12 Then the Lord appeared to Solomon at night and said to him:
I have heard your prayer and have chosen this place for Myself as a temple of sacrifice. 13 If I close the sky so there is no rain, or if I command the grasshopper to consume the land, or if I send pestilence on My people, 14 and My people who are called by My name humble themselves, pray and seek My face, and turn from their evil ways, then I will hear from heaven, forgive their sin, and heal their land. 15 My eyes will now be open and My ears attentive to prayer from this place. 16 And I have now chosen and consecrated this temple so that My name may be there forever; My eyes and My heart will be there at all times.
17 As for you, if you walk before Me as your father David walked, doing everything I have commanded you, and if you keep My statutes and ordinances, 18 I will establish your royal throne, as I promised your father David: You will never fail to have a man ruling in Israel.
19 However, if you turn away and abandon My statutes and My commands that I have set before you and if you go and serve other gods and worship them, 20 then I will uproot Israel from the soil that I gave them, and this temple that I have sanctified for My name I will banish from My presence; I will make it an object of scorn and ridicule among all the peoples. 21 As for this temple, which was exalted, everyone who passes by will be appalled and will say: Why did the Lord do this to this land and this temple? 22 Then they will say: Because they abandoned the Lord God of their ancestors who brought them out of the land of Egypt. They clung to other gods and worshiped and served them. Because of this, He brought all this ruin on them.