1 Chronicles 28:9

Leeser(i) 9 And thou, Solomon my son, know thou the God of thy father, and serve him with an entire heart and with a willing soul; for all hearts doth the Lord search, and every imagination of the thoughts doth he understand; if thou seek him, he will let himself be found by thee; but if thou forsake him, he will cast thee off for ever.