Hannah had asked Yahweh for a baby, promising him that she would give the baby to serve in the temple.