2 Chronicles 7:11-22 Holman Christian Standard Bible (HCSB)
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.