The resemblance of the stories is indeed striking: the barren wife, the sacrifice(s) of her husband Elkanah (who had two wives one of whom had "children"), Hannah's prayer, the conception and birth of ...