Yahweh visited Hannah, and she conceived, and bore three sons and two daughters. The child Samuel grew before Yahweh.
So the scene is set the man living in polygamy, two wives. One he loved more than the other. One had many children, but the one he really loved could not have any children.