I have heard your prayer, and I have chosen this place for my house of sacrifice. If I close heaven so that there is no rain, if I command the locust to devour the land, if I send pestilence among my people, if then my people, upon whom my name has been pronounced, humble themselves and pray, and seek my face and turn from their evil ways, I will hear them from heaven and pardon their sins and heal their land. Now, therefore, my eyes shall be open and my ears attentive to the prayer of this place; now I have chosen and consecrated this house that my name may be there forever; my eyes and my heart shall be there always.
As for you, if you walk before me as David your father did, doing all that I have commanded you and keeping my statutes and ordinances, I will establish the throne of your kingship as I covenanted with David your father when I said, There shall never be wanting someone from your line as ruler in Israel. But if ever you turn away and forsake my commandments and statutes which I set before you, and proceed to serve other gods, and bow down to them, I will uproot the people from the land I gave and repudiate the house I have consecrated for my name. I will make it a proverb and a byword among all nations. And this house which is so exalted—every passerby shall be horrified and ask: “Why has the Lord done such things to this land and to this house?” And the answer will come: “Because they abandoned the Lord, the God of their ancestors, who brought them out of the land of Egypt, and they embraced other gods, bowing down to them and serving them. That is why he has brought upon them all this evil.
2 Chronicles 7: 12-22