“Then Hannah rose after eating and drinking in Shiloh. Now Eli the priest was sitting on the seat by the doorpost of the temple of the Lord. She, greatly distressed, prayed to the Lord and wept bitterly. She made a vow and said, “O Lord of hosts, if You will indeed look on the affliction of Your maidservant and remember me, and not forget Your maidservant, but will give Your maidservant a son, then I will give him to the Lord all the days of his life, and a razor shall never come on his head.”
Note that when Hanna prays, she calls upon one of the names of the Lord, the “Lord of Hosts”, which refers to the strength of God; notice the meanings contain “army”, “battle”, “trained”; it is a reference to His strength, and the respect and trust that she has that He will do as He desires.