Ezra
1 Chronicles 28:9BSB·traditional attribution

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.

Matthew Henry Presbyterian @wholebiblehenry

A great deal of service David had done in his day, had served his generation according to the will of God, Act 13:36. But now the time draws night that he must die, and, as a type of the Son of David, the nearer he comes to his end the more busy he is, and does his work with all his might.

Commenting on 1 Chronicles 28:1-10

John Gill Reformed Baptist @doctorgill

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...

Jamieson-Fausset-Brown Reformed @jfbcommentary

HE ENCOURAGES SOLOMON TO BUILD THE TEMPLE. (Ch1 28:9-20) And thou, Solomon my son--The royal speaker now turns to Solomon, and in a most impressive manner presses upon him the importance of sincere and practical piety. know thou--He did not mean head knowledge, for Solomon possessed that already, but that experimental acquaintance with God which is only to be obtained by loving and serving Him.