This from Dale Ralph Davis’s Commentary on 1 Samuel 2 where we find Hanna’s prayer:
“When John Calvin had suffered the death of his wife Idelette, he wrote his friend William Farel: “May the Lord Jesus … support me … under this heavy affliction, which would certainly have overcome me, had not He, who raises up the prostrate, strengthens the weak, and refreshes the weary, stretched forth His hand from heaven to me.” Calvin was saying he would surely have been crushed but he knew a Lord who raises up the prostrate, strengthens the weak, and refreshes the weary—and that Lord had again acted in character in Calvin’s grief. That is what Hannah is saying here. I was ready to fall and Yahweh gave me strength; I was barren and he made me fruitful; I was poor and he made me rich. But that is not really surprising, for that is just the way Yahweh is (vv. 4–8)!“
Dale Ralph Davis, 1 Samuel: Looking on the Heart, 1998, Christian Focus Publications, Geanies House, Fearn, Ross-shire, IV20 1TW, Scotland, Logos Version.