NET
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.
Darby
9 And thou, Solomon my son, know the God of thy father, and serve him with a perfect heart and with a willing mind; for Jehovah searches all hearts, and discerns all the imaginations of the thoughts. If thou seek him, he will be found of thee; but if thou forsake him, he will cut thee off for ever.
KJV
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 the LORD 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.