1 Chronicles 28:9

New American Standard Bible (NASB)
“As for you, my son Solomon, know the God of your father, and serve Him with [d]a whole heart and a willing [e]mind; for the Lord searches all hearts, and understands every intent of the thoughts. If you seek Him, He will let you find Him; but if you forsake Him, He will reject you forever.

Read 1 Chronicles 28:9 in other translations