1 Kings 9:1-9 CJB

1 After Shlomo had finished building the house of ADONAI, the royal palace and everything else he wanted to build for himself,
2 ADONAI appeared to Shlomo a second time, as he had appeared to him in Giv'on.
3 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.
4 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;
5 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.'
6 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;
7 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.
8 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?'
9 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.'"