1 Chronicles 28:8-9

28:8 So now, in the sight of all Israel, the Lord’s assembly, and in the hearing of our God, I say this: Carefully observe all the commands of the Lord your God, so that you may possess this good land and may leave it as a permanent inheritance for your children after you.

28:9 “And you, Solomon my son, obey the God of your father and serve him with a submissive attitude and a willing spirit, for the Lord examines all minds and understands every motive of one’s thoughts. If you seek him, he will let you find him, but if you abandon him, he will reject you permanently.