1 Samuel:11 NASB
And she made a vow and said, “Lord of armies, if You will indeed look on the affliction of Your bond-servant and remember me, and not forget Your bond-servant, but will give Your bond-servant a [d]son, then I will give him to the Lord all the days of his life, and a razor shall never come on his head.”
It is said Hannah vowed a vow to dedicate the child to the Lord though its not stated what kind of vow she took.The following characteristics are more or less similar to that of a Nazarite.
*She made a vow
*She dedicated the child to the Lord
*No razor shall come upon his head
But according to the Mishnah a woman was not allowed to take a vow rendering her son a Nazarite
Mishna
What are the halakhic differences between a man and a woman? A man lets his hair grow and rends his garments when he is a leper, but a woman does not let her hair grow or rend her garments when she is a leper. A man can vow that his minor son shall be a nazirite, obligating the son to remain a nazirite even during his adulthood, but a woman cannot vow that her son shall be a nazirite.
How did Hannah dedicate Samuel?