1Ch 1 Chronicles, chapter First Book of Chronicles, chapter 28
And thou, Solomon my son, know thou the God of thy father, and serve Him with a whole 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. 1Sa 16:7; Psa 7:9; Jer 11:20; Jer 17:10; Jer 20:12