In 1 Samuel 1:11, Hannah vows to dedicate her son to the Lord as a Nazirite, similar to the vow concerning Samson in Judges 13:5, where Samson is to be a Nazirite from birth.
1 Samuel 1:20 records the birth of Samuel, a child of promise, similar to the birth of Isaac in Genesis 21:2, both being answers to prayer and fulfillment of God's promise.