Hannah "vowed a vow (vattiddor neder, וַתִּדֹּר נֶדֶר) and said, 'O LORD of hosts, if you will indeed look on the affliction of your servant and remember me… and give to your servant a son, then I will give him to the LORD all the days of his life, and no razor shall touch his head.'" A neder is not a wish or a New Year's resolution. In Israel's world it was a conditional, spoken, legally binding promise to God — the form is always if you do X, I will do Y, and once spoken it could not be unspoken (Num 30; Deut 23:21–23; Eccl 5:4–5). Jephthah's catastrophic vow in Judges 11 is the warning label on the same institution. Two details matter. First, the child is promised back for life — not for a temple internship, but as a permanent transfer, on the model of a Nazirite (Num 6), which is why the razor clause is attached: uncut hair was the visible sign a person belonged to God under a vow. (The Greek and Dead Sea Scroll versions make the Nazirite language even more explicit than the Hebrew text most English Bibles follow — an honest textual difference scholars note.) Second, Hannah is a married woman, and Numbers 30 gave a husband power to annul a wife's vow on the day he heard it. Elkanah hears this one — he is standing right there in the story — and does not annul it (cf. 1:23, "only, may the LORD establish his word"). His silence is consent, and the vow stands.
The first hearers heard a woman with no legal power and no children doing the one legally binding thing available to her: filing a conditional contract with God in the sanctuary, in her husband's hearing, and staking the very child she was asking for as the payment.
What Americans think: Hannah made a heartfelt promise in a moment of emotion, the ancient equivalent of "God, if you help me, I'll go to church more." What's actually there: a neder was binding spoken law. She wasn't offering feelings; she was offering the son himself — permanently, identifiably, with her husband's silence ratifying the deal. The book opens with a mother signing away her answered prayer before she receives it.