Then the LORD appeared to Solomon in the 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 the heavens so that there is no rain, or command the locust to devour the land, or send pestilence among my people,
if my people who are called by my name 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 the prayer that is made in this place.
For now I have chosen and consecrated this house that my name may be there for ever; my eyes and my heart will be there for all time.
And as for you, if you walk before me, as David your father walked, doing according to all that I have commanded you and keeping my statutes and my ordinances,
then I will establish your royal throne, as I covenanted with David your father, saying, 'There shall not fail you a man to rule Israel.'
"But if you turn aside 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 pluck you up from the land which I have given you; and this house, which I have consecrated for my name, I will cast out of my sight, and will make it a proverb and a byword among all peoples.
And at this house, which is exalted, every one passing by will be astonished, and say, 'Why has the LORD done thus to this land and to this house?"
Then they will say, 'Because they forsook the LORD the God of their fathers who brought them out of the land of Egypt, and laid hold on other gods, and worshiped them and served them; therefore he has brought all this evil upon them'"
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (Revised Standard Version - Holy Bible)