II Chronicles 7:12-22 NKJV
Then the LORD appeared to Solomon by night, and said to him: “I have heard your prayer, and have chosen this place for Myself as a house of sacrifice. When I shut up heaven and there is no rain, or command the locusts to devour the land, or send pestilence 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 I will hear from heaven, and will forgive their sin and heal their land. Now My eyes will be open and My ears attentive to prayer made in this place. For now I have chosen and sanctified this house, that My name may be there forever; and My eyes and My heart will be there perpetually. As for you, if you walk before Me as your father David walked, and do according to all that I have commanded you, and if you keep My statutes and My judgments, then I will establish the throne of your kingdom, as I covenanted with David your father, saying, ‘You shall not fail to have a man as ruler in Israel.’
“But if you turn away and forsake My statutes and My commandments which I have set before you, and go and serve other gods, and worship them, then I will uproot them from My land which I have given them; and this house which I have sanctified for My name I will cast out of My sight, and will make it a proverb and a byword among all peoples.
“And as for this house, which is exalted, everyone who passes by it will be astonished and say, ‘Why has the LORD done thus to this land and this house?’ Then they will answer, ‘Because they forsook the LORD God of their fathers, who brought them out of the land of Egypt, and embraced other gods, and worshiped them and served them; therefore He has brought all this calamity on them.’ ”
NKJV: New King James Version