Summary
In Genesis Rebekah carries twins, "the children struggled in her womb", and she inquires of God, who answers: "Two nations are in your womb, two separate peoples shall issue from your body; one people shall be mightier than the other, and the older shall serve the younger." The first comes out red, like a hairy mantle all over, and is named Esau; his brother comes out holding Esau's heel and is named Jacob. Hosea retells it: "in the womb he tried to supplant his brother".
In the Library attributed to Apollodorus, Abas king of Argos had twin sons, Acrisius and Proetus, who "quarrelled with each other while they were still in the womb"; grown up, they waged war for the kingdom, and in that war they were the first to invent shields. Acrisius gained the mastery and drove Proetus from Argos; Proetus went to Lycia, married the king's daughter and came back with an army, and the brothers divided the Argive land, Acrisius reigning in Argos and Proetus in Tiryns.
Genesis has another pair, Perez and Zerah, the sons of Tamar: one puts out a hand, the midwife ties a crimson thread on it and says "This one came out first", then it draws back its hand and its brother comes out, and she says "What a breach you have made for yourself!", so he is named Perez.
All three stories start the dispute over who comes first before birth, and make the child's name a trace of what he did on coming out. We read the names in the old Arabic tongue: Jacob from ʿaqib, the heel; Esau, whom Arabic writers called ʿĪṣū, from ʿīṣ; Proetus as fāriṭ, the one who goes before; Acrisius from iʿtakara, said of men who became embroiled in fighting; and Perez from faraṣa, to slit.
Parallels
The quarrel before birth. In Genesis "the children struggled" in the womb, the Hebrew wayyitrōṣăṣû coming from the verb rāṣaṣ, "to crush"; Brown, Driver and Briggs explain that the children struck one another within her, and set Arabic raḍḍa, to bruise or crush, beside it. In the Library they "quarrelled while they were still in the womb". The rabbinic commentators spelled out the sense: in Genesis Rabbah Rabbi Yoḥanan says each one ran to kill the other, and Rabbi Berekhya in the name of Rabbi Levi says Esau's fist was already stretched out against his brother in the womb.
Precedence and kingship. In both stories the quarrel is over what is inherited. In Genesis the oracle says "the older shall serve the younger", and Jacob later takes the birthright and the blessing. In Argos the brothers fight for the kingdom and then divide the land. In the story of Perez and Zerah the crimson thread marks the firstborn, and the one who carries it comes out second.
The name from the birth. Jacob is named for the heel he held, Perez for the breach he made, and Rashi explains Zerah by the brightness of the crimson thread. In these stories the name keeps the act of birth. The root ʿqb is attested as a personal name before the Bible: Brown, Driver and Briggs cite the Babylonian name Yaʿqub-ilu.
Divergences
The Genesis story is an oracle about two peoples who issue from the twins, whose meaning is announced before the birth, and the younger is the one who prevails. The Argive story does not say which twin was born first, has no oracle at the birth, and its victor is Acrisius; the quarrel ends with the land divided between two cities. The oracle in Acrisius' story comes later and concerns his grandson Perseus, son of his daughter Danaë, not his brother.
The quarrel of Jacob and Esau runs across several chapters, from the birthright and the blessing to the meeting at the ford of the Jabbok, whereas the twins of the Library get a single paragraph, and no longer story about them reaches us in the text we read. The story of Perez and Zerah has no open quarrel between the brothers, only a race at the moment of coming out.
Shared Substrate
Jacob. The Bible explains the name by the heel, and this root is attested in Hebrew and Arabic alike: ʿaqib is the back of the foot, and from it ʿaqabahu, he came after him and took his place, as Esau says "he has supplanted me twice". The Troy dossier makes ʿaqib "offspring and descendants, and from it Jacob", so the one who held his brother's heel became the father of a whole line. The root and its neighbours are set out on the Heel and Hobble page. Lane, ʿqb.
Esau. Genesis plays on śēʿār, "hair": he came out "like a hairy mantle", the root Arabic has as shaʿr, with Arabic shīn answering Hebrew ś. Arabic writers called him ʿĪṣū, and Ibn Manẓūr's Lisān al-ʿArab lists him under the root ʿ-y-ṣ: "and ʿĪṣū son of Isaac, father of the Rūm". In Lane ʿīṣ is a dense, tangled wood, and then stock or origin, whence the proverb "your stock is part of you, though it be thorny and tangled". So we read the name of the hairy brother as al-ʿĪṣ: dense and tangled like a thicket, and the stock that cannot be cast off though it is thorny. The correspondence of Arabic ṣād in ʿĪṣū to Hebrew ś in ʿēśāw is not regular, so the reading is a proposal.
Proetus. Removing the Greek case ending from Proîtos leaves Proit; Arabic says f where other tongues say p, and t and ṭ are not kept apart by the ear. So we hear fāriṭ: in Lane faraṭa is to precede, go before, be first, and the fāriṭ is the one who goes ahead of the company to the water to prepare the buckets and the trough. It fits a twin who quarrelled with his brother over precedence in the womb, then left his land and came back.
Acrisius. Removing -ios leaves Akris-, and we hear its beginning as ʿakara. In Lane ʿakara ʿalā is to turn back against a thing, "he fled from his adversary, then turned back against him with the spear"; iʿtakarū is said of people who became mixed together in war and embroiled in contention, and iʿtikār al-ḍarāʾir is the wrangling of co-wives. The name says what its bearer did: he turned on his brother and fought him until he drove him out. The final s of the stem remains unexplained by us, so the reading stays open.
Perez. Hebrew pereṣ is "breach", and the verb pāraṣ is "to break through"; Brown, Driver and Briggs set beside it Arabic in the sense "cut, slit", which is faraṣa in Lane: to cut a skin, slit it, make a hole in it. The one who broke the way open before his brother was named for the breach.
What is attested here is the Bible's explanation of the names Jacob and Perez, the correspondence of ʿqb and frṣ across Hebrew and Arabic, and the Arabic name ʿĪṣū for Esau. Reading ʿĪṣū from ʿīṣ, Proetus as fāriṭ and Acrisius from ʿakara is our reading by Arabic hearing. What joins the stories is that twins, in a society where the firstborn inherits, raise a question that has no ordinary answer: who is first? The stories answer that it was settled before birth, by oracle or by fighting in the womb, and that the name bears witness to it. See also divine twins.