Hannah prayed in quiet desperation. It was a shame in Israel for a wife to be barren (not have children). More than that, Hannah yearned within herself to have a child of her own. So, earnestly she promised God that if He would grant her the deep desire of her heart, she would dedicate the child for the Lord’s service.
God both heard and answered this godly woman’s prayer, and the child that resulted from this transaction became truly one of Israel’s greatest prophets. But promises to God made on our knees must be carried out for God remembers.
1 Samuel 1:1-28