Samson's mother was a wife of Manoah. She was initially childless, but an angel of the Lord appeared to her, told her that she will give birth to a son who would become both a Nazirite devoted to God and a hero of Israel, and advised her how to keep the child healthy and pure during her pregnancy.
Behold, you are infertile and have no children, but you shall conceive and give birth to a son. Therefore, be careful not to drink wine or [any other] intoxicating drink, and do not eat anything [ceremonially] unclean. For behold, you shall conceive and give birth to a son. No razor shall come upon his head, for the boy shall be a Nazirite [dedicated] to God from birth; and he shall begin to rescue Israel from the hands of the Philistines.— Judges 13:3–13:5 (AMP)
She then shared what happened with her husband.
A Man of God came to me and his appearance was like the appearance of the Angel of God, very awesome. I did not ask Him where he came from, and he did not tell me his name. But He said to me,Behold, you shall conceive and give birth to a son, and now you shall not drink wine or [any other] intoxicating drink, nor eat anything [ceremonially] unclean, for the boy shall be a Nazirite to God from birth to the day of his death.— Judges 13:6–13:7 (AMP)
Manoah then asked God to have the angel return to them in order to teach them how to properly raise the child. God answered Manoah's prayers and had the angel appear before Manoah's wife again. Manoah's wife then brought her husband to see the angel.
The angel repeated his instructions about keeping the child healthy and pure, and when Manoah asked the angel to stay and have a meal with them, the angel remembered offering a sacrifice.
Manoah made the sacrifice, and the angel ascend into Heaven with the flame from the alter. Manoah and his wife recognized the miracle from God and prostrated. When Manoah suggested that they would die for seeing the Lord, his wife said,
If the Lord had desired to kill us, He would not have received a burnt offering and a grain offering from our hands, nor would He have shown us all these things, nor would He have announced such things as these at this time.— Judges 13:23 (AMP)
Manoah's wife conceived and gave birth to a son, as prophesied, and named him Samson. Samson was raised as a Nazirite from birth and never had his hair cut until he was betrayed by Delilah in adulthood. God blessed Samson, and Samson became a hero to the Jewish people.