1 Chronicles 28:9

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.

1 Chronicles 28:9 Meaning and Commentary

1 Chronicles 28:9

And thou, Solomon my son
Who was present in this assembly, and presented to them by David as his successor, and their future king: and having addressed them, he turns himself to him, and exhorts him, saying,

know thou the God of thy father;
who was his Father and covenant God, and whom he served and worshipped, and who had bestowed upon him many favours, both temporal and spiritual; and having had such an experience of his goodness, he exhorts his son to seek to know more and more of him, and to own and acknowledge him as his God, and to love and fear him:

serve him with a perfect heart, and with a willing mind;
cordially and sincerely, cheerfully and freely, neither in an hypocritical manner, nor through force and constraint, nor with loathing and weariness:

for the Lord searcheth all hearts;
the hearts of all men, even of kings, and knows from what principles and with what views and in what manor they serve him:

and understandeth all the imaginations of the thought;
not only the thoughts of the heart, when regularly formed and ranged in order, hut even the very beginning of them, the first motions of the mind, and before they are well formed, see ( Genesis 6:5 ) ( Psalms 139:2 )

if thou seek him;
by prayer and supplication in his house and ordinances:

he will be found of thee;
grant his presence and bestow his favours, see ( Isaiah 4:6 )

but if thou forsake him:
his word, his ways, his worship:

he will cast thee off for ever;
from being king, or enjoying that peace, prosperity, and happiness, which otherwise would be enjoyed.

1 Chronicles 28:9 In-Context

7 Moreover I will establish his kingdom for ever, if he be constant to do my commandments and my judgments, as at this day.
8 Now therefore in the sight of all Israel the congregation of the LORD, and in the audience of our God, keep and seek for all the commandments of the LORD your God: that ye may possess this good land, and leave it for an inheritance for your children after you for ever.
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.
10 Take heed now; for the LORD hath chosen thee to build an house for the sanctuary: be strong, and do it.
11 Then David gave to Solomon his son the pattern of the porch, and of the houses thereof, and of the treasuries thereof, and of the upper chambers thereof, and of the inner parlours thereof, and of the place of the mercy seat,