2 And he had two wives, one named Hannah and the other Peninnah: and Peninnah was the mother of children, but Hannah had no children. 3 Now this man went up from his town every year to give worship and to make offerings to the Lord of armies in Shiloh. And the two sons of Eli, Hophni and Phinehas, the priests of the Lord, were there. 4 And when the day came for Elkanah to make his offering, he gave to Peninnah his wife, and to all her sons and daughters, their part of the feast: 5 But to Hannah he gave one part, though Hannah was very dear to him, but the Lord had not let her have children. 6 And the other wife did everything possible to make her unhappy, because the Lord had not let her have children; 7 And year by year, whenever she went up to the house of the Lord, she kept on attacking her, so that Hannah gave herself up to weeping and would take no food. 8 Then her husband Elkanah said to her, Hannah, why are you weeping? and why are you taking no food? why is your heart troubled? am I not more to you than ten sons?

Matthew Henry's Commentary on 1 Samuel 1:2-8

Commentary on 1 Samuel 1:1-8

(Read 1 Samuel 1:1-8)

Elkanah kept up his attendance at God's altar, notwithstanding the unhappy differences in his family. If the devotions of a family prevail not to put an end to its divisions, yet let not the divisions put a stop to the devotions. To abate our just love to any relation for the sake of any infirmity which they cannot help, and which is their affliction, is to make God's providence quarrel with his precept, and very unkindly to add affliction to the afflicted. It is evidence of a base disposition, to delight in grieving those who are of a sorrowful spirit, and in putting those out of humour who are apt to fret and be uneasy. We ought to bear one another's burdens, not add to them. Hannah could not bear the provocation. Those who are of a fretful spirit, and are apt to lay provocations too much to heart, are enemies to themselves, and strip themselves of many comforts both of life and godliness. We ought to notice comforts, to keep us from grieving for crosses. We should look at that which is for us, as well as what is against us.