After Shlomo had finished building the house of ADONAI, the royal palace and everything else he wanted to build for himself,
ADONAI appeared to Shlomo a second time, as he had appeared to him in Giv'on.
ADONAI said to him, "I have heard your prayer and your plea that you made before me: I am consecrating this house which you built and placing my name there forever; my eyes and heart will always be there.
As for you, if you will live in my presence, as did David your father, in pureness of heart and uprightness, doing everything I have ordered you to do, and observing my laws and rulings;
then I will establish the throne of your rulership over Isra'el forever, just as I promised David your father when I said, 'You will never lack a man on the throne of Isra'el.'
But if you turn away from following me, you or your children, and do not observe my mitzvot and regulations which I have set before you, and go and serve other gods, worshipping them;
then I will cut off Isra'el from the land I have given them. This house, which I consecrated for my name, I will eject from my sight; and Isra'el will become an example to avoid and an object of scorn among all peoples.
This house, now so exalted - everyone passing by will gasp in shock at the sight of it and will ask, 'Why has ADONAI done this to this land and to this house?'
But the answer will be, 'It's because they abandoned ADONAI their God, who brought their ancestors out of the land of Egypt, and took hold of other gods, worshipping and serving them; this is why ADONAI brought all these calamities on them.'"