1 Chronicles 28:9

7 I will establish his kingdom forever, if he resolutely carries out My commandments and ordinances, as is being done this day.’

8 So now in the sight of all Israel, the assembly of the LORD, and in the hearing of our God, keep and seek out all the commandments of the LORD your God, so that you may possess this good land and leave it as an inheritance to your descendants forever.

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.

10 Consider now that the LORD has chosen you to build a house for the sanctuary. Be strong and do it.”

11 Then David gave his son Solomon the plans for the portico of the temple, its buildings, storehouses, upper rooms, inner rooms, and the room for the mercy seat.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
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.
KJV
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.
WEB
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.
ASV
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.
DARBY
And thou, Solomon my son, know the God of thy father, and serve him with a perfect heart and with a willing mind; for Jehovah searches all hearts, and discerns all the imaginations of the thoughts. If thou seek him, he will be found of thee; but if thou forsake him, he will cut thee off for ever.
BLB
And as for you, Solomon my son, know the God of your father and serve Him with a perfect heart and with a willing mind, for YHWH searches all hearts, and He understands all the intent of thoughts. If you seek Him, He will be found by you; but if you forsake Him, He will cast you off forever.
ÅB
Og du, min sønn Salomo, lær din fars Gud å kjenne og tjen ham med udelt hjerte og med villig sjel! For Herren ransaker alle hjerter og forstår alle menneskers tanker og råd; dersom du søker ham, skal han la seg finne av deg, men dersom du forlater ham, skal han forkaste deg for alltid.
OTB
Og du, min sønn Salomo, kjenn din fars Gud,
og tjen ham med et helt hjerte og et villig sinn;
for Herren ransaker alle hjerter, og forstår hver tanke og hensikt.
Hvis du søker ham, vil han la deg finne ham;
men hvis du forlater ham, vil han forkaste deg for alltid.
B1930
Og du, min sønn Salomo, lær din fars Gud å kjenne og tjen ham med udelt hjerte og med villig sjel! For Herren ransaker alle hjerter og forstår alle menneskers tanker og råd; dersom du søker ham, skal han la sig finne av dig, men dersom du forlater ham, skal han forkaste dig for alltid.

Study notes (Tyndale)

Original text and word study

Cross references