1 Chronicles 28:9

As for you, Solomon my son, know the God of your father and serve Him wholeheartedly and with a willing mind, for the Lord searches every heart and understands the intent of every thought. If you seek Him, He will be found by you; but if you forsake Him, He will reject you forever.
BSB · Berean Standard Bible
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.
KJV · King James Version
You, Solomon my son, know the God of your father, and serve him with a perfect heart and with a willing mind; for the Lord searches all hearts, and understands all the imaginations of the thoughts. If you seek him, he will be found by you; but if you forsake him, he will cast you off forever.
WEB · World English Bible
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.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

know thou
Deuteronomy 4:35; 1 Kings 8:43; Psalm 9:10; Jeremiah 9:24; Jeremiah 22:16; Jeremiah 24:7; Jeremiah 31:34; Hosea 4:1, 6; John 8:55; John 17:3; Acts 17:23, 30; Romans 1:28; 1 Corinthians 15:34; 2 Corinthians 4:6
the God
Genesis 28:13; Exodus 3:16; Exodus 15:2; 1 Kings 3:6; Psalm 18:2; Psalm 89:26
serve him
1 Chronicles 29:9, 17–19; 1 Kings 8:61; 2 Kings 20:3; 2 Kings 22:2; Job 36:11, 12; Psalm 101:2; John 1:47; John 4:24; Romans 1:29; Hebrews 12:28
a willing mind
2 Corinthians 8:12; 2 Corinthians 9:7; 1 Peter 5:2
the Lord
1 Chronicles 29:17; 1 Samuel 16:7; 1 Kings 8:39; Psalm 7:9; Psalm 139:2; Proverbs 17:3; Jeremiah 11:20; Jeremiah 17:10; Jeremiah 20:12; John 2:25; John 21:17; Acts 1:24; Hebrews 4:13; Revelation 2:23
the imaginations
Genesis 6:5; Genesis 8:21; Deuteronomy 31:21; Psalm 139:2; Ezekiel 38:10
if thou seek
2 Chronicles 15:2; Proverbs 2:1–6; Isaiah 45:19; Isaiah 55:6, 7; Jeremiah 29:13; Matthew 7:7, 8; James 4:8–11
if thou forsake
Deuteronomy 31:16, 17; 1 Kings 9:6–9; Ezra 8:22; Isaiah 1:28; Hebrews 10:38, 39