Passage
So he told her all that was in his heart and said to her, “A razor has never come on my head, for I have been a Nazirite to God from my mother’s womb. If I am shaved, then my strength will leave me and I will become weak and be like every other man.”
Nearby Context
Judges 16:15 Then she said to him, “How can you say, ‘I love you,’ when your heart is not with me? You have deceived me these three times and have not told me where your great strength is.”
Judges 16:16 Now it happened when she pressed him daily with her words and urged him, that his soul was annoyed to death.
Judges 16:17 So he told her all that was in his heart and said to her, “A razor has never come on my head, for I have been a Nazirite to God from my mother’s womb. If I am shaved, then my strength will leave me and I will become weak and be like every other man.”
Judges 16:18 And Delilah saw that he had told her all that was in his heart, so she sent and called the lords of the Philistines, saying, “Come up once more, for he has told me all that is in his heart.” Then the lords of the Philistines came up to her and brought up the silver in their hands.
Judges 16:19 Then she made him sleep on her knees and called for a man and had him shave off the seven locks of his head. Then she began to afflict him, and his strength left him.
Study Lenses
The verse centers on "told", "heart", "said", "razor", "never", "come", "head", and "been". 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 "Now it happened when she pressed him..." into verse 18's "And Delilah saw that he had told...", 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.