1 Chronicles 28:7-9

ASV(i) 7 And I will establish his kingdom for ever, if he be constant to do my commandments and mine ordinances, as at this day. 8 Now therefore, in the sight of all Israel, the assembly of Jehovah, and in the audience of our God, observe and seek out all the commandments of Jehovah your God; that ye may possess this good land, and leave it for an inheritance to your children after you for ever.
9 And thou, Solomon my son, know thou the God of thy father, and serve him with a perfect heart and with a willing mind; for Jehovah searcheth all hearts, and understandeth all the imaginations of the thoughts: If thou seek him, he will be found of thee; but if thou forsake him, he will cast thee off for ever.