Passage
And I know, my God, that thou triest the heart, and hast pleasure in uprightness. In the uprightness of my heart have I willingly offered all these things; and now have I seen with joy thy people, which are present here, offer willingly to thee.
Nearby Context
1 Chronicles 29:15 For we are strangers before thee, and sojourners, as all our fathers: our days on the earth are as a shadow, and there is no hope [of life].
1 Chronicles 29:16 Jehovah our God, all this store that we have prepared to build thee a house to thy holy name, is of thy hand, and is all thine own.
1 Chronicles 29:17 And I know, my God, that thou triest the heart, and hast pleasure in uprightness. In the uprightness of my heart have I willingly offered all these things; and now have I seen with joy thy people, which are present here, offer willingly to thee.
1 Chronicles 29:18 Jehovah, God of Abraham, of Isaac, and of Israel, our fathers, keep this for ever in the imagination of the thoughts of the heart of thy people, and direct their hearts to thee!
1 Chronicles 29:19 And give to Solomon my son a perfect heart, to keep thy commandments, thy testimonies, and thy statutes, and to do all, and to build the palace, for which I have made provision.
Study Lenses
The verse centers on "thou", "triest", "heart", "hast", "pleasure", and "uprightness". It is saying that the verse draws attention to "thou" and "triest", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 16's "Jehovah our God all this store that..." into verse 18's "Jehovah God of Abraham of Isaac and...", so "thou" and "triest" belong inside that flow. In 1 Chronicles context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "thou" and "triest" with trust shaped by these words, not by a vague optimism outside the passage.