Passage
And he told her all his heart, and said unto her, There hath not come a razor upon my head; for I have been a Nazirite unto God from my mother`s womb: if I be shaven, then my strength will go from me, and I shall become weak, and be like any other man.
Nearby Context
Judges 16:15 And she said unto him, How canst thou say, I love thee, when thy heart is not with me? thou hast mocked me these three times, and hast not told me wherein thy great strength lieth.
Judges 16:16 And it came to pass, when she pressed him daily with her words, and urged him, that his soul was vexed unto death.
Judges 16:17 And he told her all his heart, and said unto her, There hath not come a razor upon my head; for I have been a Nazirite unto God from my mother`s womb: if I be shaven, then my strength will go from me, and I shall become weak, and be like any other man.
Judges 16:18 And when Delilah saw that he had told her all his heart, she sent and called for the lords of the Philistines, saying, Come up this once, for he hath told me all his heart. Then the lords of the Philistines came up unto her, and brought the money in their hand.
Judges 16:19 And she made him sleep upon her knees; and she called for a man, and shaved off the seven locks of his head; and she began to afflict him, and his strength went from him.
Study Lenses
The verse centers on "told", "heart", "said", "hath", "come", "razor", "upon", and "head". It is saying that the verse draws attention to "told" and "heart", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 16's "And it came to pass when she..." into verse 18's "And when Delilah saw that he had...", so "told" and "heart" belong inside that flow. In Judges context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "told" and "heart" with trust shaped by these words, not by a vague optimism outside the passage.