Hannah has worked through her lament and then a baby will soon arrive.
This is what she had been hoping and waiting for her entire adult life, what she dreamed about as a little child. It's one thing to make promises to God, but it's another to keep them...especially when it involves giving her child away.