Elkanah went to Ramah to his house. The child did minister to Yahweh before Eli the priest.
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.