John Gill's Exposition of the Whole Bible
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
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.