Deep Bible
Back to Questions
Deep dive · 13 min read
Scholars debate

Exodus 21-23 and the Code of Hammurabi

In December 1901 and January 1902, French archaeologists at Susa found a black diorite stele inscribed with the laws of Hammurabi of Babylon (now Louvre AO 10237, sometimes catalogued Sb 8). The match with Exodus 21-23 was immediate and unmistakable. Both use 'if-then' case law. Both rule on the goring ox, on slave injury, on kidnapping, on eye-for-eye. The discovery opened a question that has not closed: did Israel borrow from Babylon, share a wider ancient Near Eastern legal tradition, or arrive at similar rulings independently?

What's at stake

The Covenant Code (Exod 20:22-23:33, with the case-law concentrated in 21:1-22:17) is the oldest collection of legal material in the Hebrew Bible. The Code of Hammurabi (CH), copied around 1754 BCE and surviving in roughly 300 manuscript fragments plus the Susa stele, is the most complete ancient Near Eastern law collection. Half a dozen specific rulings appear in both. The literary form (casuistic 'if-then' construction) is shared across both collections. The disagreement is about what the overlap means: textual dependence, shared regional convention, or coincidence in a small enough legal domain. The answer changes how Exodus 21-23 is read and how Israel's law is situated in the wider ancient world.

What the discovery showed

Jacques de Morgan's French archaeological mission to Susa (modern Shush, in southwestern Iran) recovered the Hammurabi stele in three pieces between December 1901 and January 1902. The stele had been carried from Babylon to Susa as war booty by the Elamite king Shutruk-Nahhunte around 1158 BCE. Vincent Scheil, the philologist on the mission, produced the editio princeps in 1902. By 1903 S. A. Cook had published a comparison with the Pentateuch, and S. R. Driver's commentary on Exodus (1911) treated the question of dependence as a live problem in serious biblical scholarship.

What the stele showed was that Hammurabi's lawgivers had organized roughly 282 rulings (the standard count after Scheil's reconstruction) into casuistic form. Each begins with 'if' (Akkadian shumma) followed by a description of a circumstance, and concludes with the legal consequence. Exodus 21-22 does the same. The form is so distinctive, and the overlap in subject matter so close, that the comparative question could not be set aside.

The three positions

How the parallels have been read

Three families of reading. Each accepts the overlap and explains it differently.

The Covenant Code draws on the Hammurabi tradition, either through direct knowledge of CH itself or through a mediating West Semitic legal source that itself depended on CH. The specific rulings that match are too close in wording and in legal logic to be coincidence; the differences are the points where Israel reshaped a known source for its own covenant theology.
Held by
  • Hugo Winckler, Die Gesetze Hammurabis (1903) and subsequent panbabylonist work
  • S. R. Driver, The Book of Exodus (CBSC, 1911); Modern Research as Illustrating the Bible (1909)
  • A. Alt, 'The Origins of Israelite Law' (1934)
  • Albrecht Goetze, The Laws of Eshnunna (1956)
  • Reuven Yaron, The Laws of Eshnunna (1969; rev. 1988)
  • David P. Wright, Inventing God's Law (Oxford, 2009), arguing for direct literary dependence on the Akkadian text of CH
  • Eckart Otto, Wandel der Rechtsbegründungen (1988); Theologische Ethik des Alten Testaments (1994)
  • John Van Seters, A Law Book for the Diaspora (Oxford, 2003)
Evidence
  • The casuistic form (shumma X, Y; the Akkadian-Hebrew parallel of conditional plus consequence) is shared across both texts in essentially identical structure
  • The goring ox ruling appears in CH §§250-252 and Exod 21:28-32 with the same three-part structure: a non-aggressive ox (no liability), an ox the owner knew was dangerous (liability), an ox that gores a slave (compensation by silver). Wright argues this sequence is too specific to share by coincidence
  • The kidnapping penalty in CH §14 and Exod 21:16 both impose death. The 'kidnap-to-sell' framing in Exod 21:16 matches the CH formulation that the kidnapper 'has carried him off'
  • Eye-for-eye, tooth-for-tooth (CH §§196-200, Exod 21:23-25, Lev 24:19-20, Deut 19:21) shares both the principle and the body-part list. The Akkadian 'eye for eye' (Akkadian inum kima inim) is verbally close to the Hebrew ayin tahat ayin
  • The deposit law for goods entrusted to a neighbor (CH §§120-126, Exod 22:7-13) shares the structure of oath-clearance when goods are stolen and the question is whether the entrusted party is responsible
  • Wright (2009) argues the Covenant Code follows Hammurabi's sequence of topics closely enough that the dependence is literary, not merely conventional. He proposes a Neo-Assyrian or Neo-Babylonian period date for the dependence (8th-7th c. BCE)
  • The Mari archives and the Amarna correspondence show that Akkadian was the diplomatic lingua franca across the Levant well into the second millennium, providing a plausible channel for Babylonian legal traditions to reach Canaan
Challenges
  • The Covenant Code does not preserve the Hammurabi stratification by social class (awilum / mushkenum / wardum). Where CH distinguishes free man, commoner, and slave with separate penalties, the Covenant Code treats all free Israelites uniformly. A copyist drawing on CH would have had to systematically rewrite at this level, which is a substantial editorial effort
  • Some specific rulings reverse Hammurabi's priorities. CH §8 protects palace and temple property with thirtyfold restitution; theft of an ox or sheep in Exod 22:1 has its own ratios (fivefold for an ox, fourfold for a sheep). The proportions do not match
  • Hammurabi protects property over life in some cases (theft from temple or palace is capital, CH §6); the Covenant Code never imposes death for theft, only restitution. Direct borrowing leaves this systematic difference unexplained
  • The Covenant Code contains material that has no parallel in CH (the Sabbath release, the festival calendar, the sojourner protection). If the borrowing was substantial, the integration with the non-shared material would be the test of how the borrowing was managed

Rulings that match: side by side

The comparison below puts the Hammurabi text (Scheil's reconstruction, standard numbering) next to the Covenant Code text. The match in legal logic is the clearest in the goring-ox cluster, in kidnapping, and in eye-for-eye. The differences in those same cases are the points where the texts diverge in priorities, especially around social class and the relative weight of property versus life.

Hammurabi and the Covenant Code on eight specific rulings

Each row gives the Hammurabi paragraph (left, in standard English translation following the ANET tradition) and the Exodus or Pentateuchal parallel (right, KJV). Read across each row to see what overlaps and what diverges.

Code of Hammurabi (1754 BCE)
Goring ox
'If an ox, while going along the street, gored a man and brought about his death, that case is not subject to claim.' (CH §250) 'If a man's ox was a habitual gorer and the city council made known to him that it was a gorer but he did not pad its horns or tie up his ox, and that ox gored a free man and brought about his death, he shall pay half a mina of silver.' (CH §251) 'If it was a man's slave, he shall give one-third mina of silver.' (CH §252)
Ox kills slave
'If it was a man's slave, he shall give one-third mina of silver.' (CH §252) The slave's master receives silver compensation; the ox is not killed.
Kidnapping
'If a free man has stolen the young son of another free man, he shall be put to death.' (CH §14)
False witness (capital case)
'If a free man has come forward in a case to bear false witness and has not proved the word he spoke, if that case is a capital case, that man shall be put to death.' (CH §3)
Eye for eye
'If a free man has destroyed the eye of a member of the aristocracy, they shall destroy his eye.' (CH §196) 'If he has broken a free man's bone, they shall break his bone.' (CH §197) 'If he has destroyed the eye of a commoner or broken the bone of a commoner, he shall pay one mina of silver.' (CH §198) 'If he has destroyed the eye of a free man's slave or broken the bone of a free man's slave, he shall pay one-half of his value.' (CH §199)
Theft restitution (ox or sheep)
'If a free man stole an ox or a sheep or an ass or a pig or a boat, if it belonged to the temple or to the palace, he shall make thirtyfold restitution; if it belonged to a private citizen, he shall make tenfold restitution. If the thief does not have sufficient to make restitution, he shall be put to death.' (CH §8)
Slave manumission / debt slavery
'If a free man became liable for debt and sold his wife, his son, or his daughter, or has handed them over for service, they shall work in the house of their purchaser or obligee for three years; their release shall be secured in the fourth year.' (CH §117)
Kidnap-to-sell
'If a free man has stolen the young son of another free man, he shall be put to death.' (CH §14, applied to kidnapping including for sale)
Covenant Code (Exodus 21-22)
Goring ox
'If an ox gore a man or a woman, that they die: then the ox shall be surely stoned, and his flesh shall not be eaten; but the owner of the ox shall be quit. But if the ox were wont to push with his horn in time past, and it hath been testified to his owner, and he hath not kept him in, but that he hath killed a man or a woman; the ox shall be stoned, and his owner also shall be put to death.' (Exod 21:28-29) Owner pays death penalty (or ransom, v. 30); ox is stoned and its flesh is not eaten.
Ox kills slave
'If the ox shall push a manservant or a maidservant; he shall give unto their master thirty shekels of silver, and the ox shall be stoned.' (Exod 21:32) Master receives fixed silver compensation; ox is stoned (not eaten).
Kidnapping
'And he that stealeth a man, and selleth him, or if he be found in his hand, he shall surely be put to death.' (Exod 21:16; cf. Deut 24:7)
False witness (capital case)
'Thou shalt not raise a false report... Keep thee far from a false matter; and the innocent and righteous slay thou not: for I will not justify the wicked.' (Exod 23:1, 7) Deut 19:18-19 specifies talionic penalty: 'Then shall ye do unto him, as he had thought to have done unto his brother.'
Eye for eye
'And if any mischief follow, then thou shalt give life for life, eye for eye, tooth for tooth, hand for hand, foot for foot, burning for burning, wound for wound, stripe for stripe.' (Exod 21:23-25; cf. Lev 24:19-20; Deut 19:21) No internal stratification by social class; the talion applies uniformly to the parties.
Theft restitution (ox or sheep)
'If a man shall steal an ox, or a sheep, and kill it, or sell it; he shall restore five oxen for an ox, and four sheep for a sheep.' (Exod 22:1) Restitution ratios are 5:1 and 4:1, not tied to ownership by temple or palace. No death penalty for theft; if the thief cannot restore, he is sold for his theft (Exod 22:3).
Slave manumission / debt slavery
'If thou buy an Hebrew servant, six years he shall serve: and in the seventh he shall go out free for nothing.' (Exod 21:2; cf. Deut 15:12-18; Lev 25:39-43) Six-year service, release in the seventh year. (Note the difference from CH §117's three-year service and release in the fourth year.)
Kidnap-to-sell
'And he that stealeth a man, and selleth him, or if he be found in his hand, he shall surely be put to death.' (Exod 21:16) The verb is ganav (steal); the selling clause makes explicit the commercial purpose. Deut 24:7 specifies Israelite victim.

Where the texts disagree

The most systematic difference between Hammurabi and the Covenant Code is social stratification. Hammurabi distinguishes three classes (awilum / 'free man,' mushkenum / 'commoner,' wardum / 'slave') and assigns different penalties depending on the social standing of the perpetrator and the victim. CH §§196-199 are the clearest example. An eye for an eye is the rule between free men. A commoner who injures another commoner pays silver. A slave who is injured receives only half-value compensation. The same physical act yields three different legal consequences depending on whose body it is.

The Covenant Code does not stratify in this way. Exod 21:23-25 gives the talion as a uniform rule between Israelites. Where it treats slaves (Exod 21:20-21, 21:26-27), the slave's body is protected by separate provisions, including the freedom-for-injury rule that compensates the slave's eye or tooth with manumission. Whether one reads this as a moral advance, a different organizing principle, or evidence of a different social setting, the structural difference is clear and unmistakable. Joshua Berman (Created Equal, 2008) argues this is a deliberate departure from the ANE legal mainstream. Other readers see it as evidence of a different social setting (a smaller, less stratified community) rather than a programmatic critique.

A second systematic difference is the relative weight given to life and property. Hammurabi imposes death for theft from temple or palace (CH §6) and for receiving stolen property without proof of purchase (CH §7). The Covenant Code never imposes death for theft. Exod 22:1-4 imposes graded restitution (fivefold for an ox, fourfold for a sheep, double for goods recovered alive). The most severe consequence for an Israelite thief is that, if he cannot restore, he is sold into slavery 'for his theft' (Exod 22:3). The principle that property crimes do not warrant capital punishment is consistent across the Covenant Code.

Two further differences are often noted. First, the Covenant Code includes substantial material that has no direct ANE parallel: the Sabbath release (Exod 23:10-12), the festival calendar (Exod 23:14-17), the sojourner protections (Exod 22:21, 23:9), and the prohibition of boiling a kid in its mother's milk (Exod 23:19). Second, Hammurabi is presented as the work of a king who 'received' justice from Shamash; the Covenant Code is framed as YHWH speaking the covenant terms directly to Israel through Moses. The legal medium is different. Whether that framing is theological window-dressing on a shared legal substrate, or a determining structural feature of the Covenant Code, is itself part of the comparative question.

The wider field: not just Hammurabi

Hammurabi is the most complete ANE legal collection, but it is not the only one. Five other collections, all from the second millennium BCE or earlier, provide the wider context for the Covenant Code's literary form and topical concerns. The collections are usually grouped together as the 'cuneiform legal tradition' that runs from late Sumerian Ur III through the Old Babylonian period, through the Hittite empire, and into the Middle Assyrian period.

The cuneiform legal tradition and the Covenant Code

The dates are conventional for each collection. The Covenant Code's own date is debated; the band shown reflects the range of current scholarly proposals.

Cuneiform legal collections
Israelite legal collections
2100 BCE
Code of Ur-Nammu (Ur III)
Earliest known law collection. Sumerian. Roughly 32 surviving laws. Casuistic form with monetary penalties for many bodily injuries.
0% along range
1930 BCE
Code of Lipit-Ishtar (Isin)
Sumerian. Roughly 38 surviving laws. Concerns inheritance, slave manumission, marriage, ox rental.
11% along range
1900 BCE
Laws of Eshnunna
Akkadian. 60 laws. Goring ox provisions (Eshnunna §§53-55) parallel to CH §§250-252 and Exod 21:28-32.
13% along range
1754 BCE
Code of Hammurabi (Old Babylonian)
Akkadian. 282 surviving laws. The most complete ANE collection. Susa stele (Louvre AO 10237) recovered 1901-1902.
22% along range
1500 BCE
Hittite Laws (Anatolia)
Hittite (Indo-European). Roughly 200 laws. Includes ox-injury provisions; some animal-execution penalties.
38% along range
1280 BCE
Late date for the Covenant Code (Exodus 21-23)
On the late-date Exodus chronology, the Sinai legislation falls in the 13th century BCE. Sets the earliest plausible date for the Covenant Code's compositional core.
51% along range
1100 BCE
Middle Assyrian Laws (Assur)
Akkadian. Roughly 116 laws across multiple tablets. Notable for elaborate provisions on women's status.
63% along range
700 BCE
Wright's proposed date for the Covenant Code's literary dependence on Hammurabi
David P. Wright (2009) argues the Covenant Code was composed in the Neo-Assyrian period (8th-7th c. BCE), drawing directly on the Akkadian text of CH. Disputed.
88% along range
625 BCE
Deuteronomy 12-26 (Deuteronomic Code)
Reworks several Covenant Code provisions (slave release in Deut 15, talion in Deut 19). Levinson (1997) reads Deuteronomy as deliberately revising the Covenant Code.
92% along range
500 BCE
Holiness Code (Leviticus 17-26)
Often dated to the Priestly tradition. Contains Lev 24:17-22, the longest talion formulation in the Hebrew Bible.
100% along range

How the dating of the Covenant Code interacts with the debate

The borrowing question is entangled with the dating question. If the Covenant Code's core dates to the Late Bronze Age (13th c. BCE, the late-date Exodus chronology), then it is contemporary with the Hittite Laws and predates the Middle Assyrian Laws. Direct borrowing from Hammurabi (1754 BCE) would have to traverse roughly five centuries through the Old Babylonian and Middle Babylonian periods. The Amarna correspondence (14th c. BCE) shows that Akkadian was used diplomatically across the Levant during that period, which provides one possible channel.

If the Covenant Code reached its current form much later (Wright's 8th-7th c. BCE proposal, or the Deuteronomistic-period proposals of Otto and Van Seters), then Neo-Assyrian period contact with the Babylonian legal tradition becomes a more direct possibility. Tablets of Hammurabi circulated as scribal exemplars in the Neo-Assyrian and Neo-Babylonian periods (fragments have been recovered from Assur, Nineveh, and other sites), so a 7th-century Hebrew scribe could plausibly have had access to the Akkadian text.

The shared-tradition position is partly indifferent to this dating spread, because the regional legal koine could have reached Israelite scribes at any point from the Late Bronze Age through the Iron II period. The direct-borrowing position is more dependent on which channel of access is being argued for. The independent-origin position is largely uninterested in the dating question, because its claim is that the parallels do not require any specific channel of contact.

What each position has to account for

The direct-borrowing position has to account for the systematic differences (no social stratification, no death penalty for theft, the framing of YHWH as covenant lawgiver) without making the borrowing process so heavily redactional that it stops looking like borrowing. Wright's case in particular has to defend the sequential matching of topics, which is its strongest argument and also its most contested claim. If the sequence holds, the case is strong. If the sequence breaks under closer inspection, the verbal parallels alone do not carry the weight.

The shared-tradition position has to account for the verbal closeness of some rulings (especially the goring-ox sequence and the eye-for-eye list). Westbrook's response is that conventional legal language tends to converge on similar formulations across a shared scribal culture. Whether that convergence is sufficient to explain the closest parallels, or whether some specific channel of contact must be posited, is the open question. The shared-tradition position is the modal current scholarly view but is not unchallenged.

The independent-origin position has to account for the specificity of the parallels (not just shared morality but shared procedural detail) without recourse to a regional legal tradition. The natural-law framing handles general moral overlap but is weaker on specific legal procedure. As a result this position is now mostly held in confessional rather than academic contexts, often as a complementary framing rather than as a freestanding reconstruction.

Reading Exodus 21-23 with the comparison in view

What the comparison surfaces, regardless of which position one holds, is the shape of the Covenant Code's distinctive features. The exodus rationale for slave release (Exod 21:2, with the seventh-year manumission framed against Israel's own slavery in Egypt). The sojourner clauses (Exod 22:21, 23:9, twice repeating 'for you were sojourners in the land of Egypt'). The Sabbath rest extended to slaves, livestock, and the land itself (Exod 23:10-12). The festival calendar (Exod 23:14-17). The covenant framing of the whole, with its theological prologue at Exod 20:22-26 and its covenant ratification at Exod 24:3-8. These are features the ANE legal tradition does not produce.

Whether the Covenant Code drew from Hammurabi, drew from a shared regional tradition, or arose independently, what makes it the Covenant Code is what is added to the casuistic material: covenant. The shared-tradition reading treats this addition as the Israelite legal community's distinctive theological framing of a borrowed form. The direct-borrowing reading treats it as the Israelite editor's redirection of a known source. The independent-origin reading treats it as native from the outset. In all three, the addition is what makes Exodus 21-23 Exodus 21-23, and not just another cuneiform law collection.

Sources

Primary sources
  • Code of Hammurabi, Susa stele, Louvre AO 10237 (also catalogued Sb 8) (c. 1754 BCE)
  • Vincent Scheil, Textes élamites-sémitiques, deuxième série (Délégation en Perse, Mémoires 4; Leroux, 1902), editio princeps of the Code of Hammurabi stele
  • Code of Ur-Nammu (c. 2100 BCE), tablets from Nippur and Ur (ANET 523-525)
  • Code of Lipit-Ishtar (c. 1930 BCE) (ANET 159-161)
  • Laws of Eshnunna (c. 1900 BCE) (ANET 161-163; Yaron 1988)
  • Hittite Laws (c. 1500 BCE) (ANET 188-197; Hoffner, The Laws of the Hittites, Brill 1997)
  • Middle Assyrian Laws (c. 1100 BCE) (ANET 180-188; Roth 1997)
  • Exodus 20:22-23:33 (Masoretic Text; Samaritan Pentateuch)
  • Leviticus 24:17-22 (talion formulation)
  • Deuteronomy 15:12-18 (slave release); 19:15-21 (witnesses and talion); 24:7 (kidnapping)
  • Mari archives (Old Babylonian; Archives Royales de Mari series, Geuthner)
  • Amarna correspondence (14th c. BCE) (Moran, The Amarna Letters, Johns Hopkins 1992)
  • James B. Pritchard, ed., Ancient Near Eastern Texts Relating to the Old Testament (ANET), 3rd ed. (Princeton, 1969)
  • Martha T. Roth, Law Collections from Mesopotamia and Asia Minor (SBL Writings from the Ancient World; Scholars Press, 1997)
Modern scholarship cited
  • Hugo Winckler, Die Gesetze Hammurabis (1903)
  • S. R. Driver, The Book of Exodus (CBSC; Cambridge, 1911)
  • Albrecht Alt, 'Die Ursprünge des israelitischen Rechts' (1934); ET 'The Origins of Israelite Law,' in Essays on Old Testament History and Religion (Blackwell, 1966)
  • Albrecht Goetze, The Laws of Eshnunna (AASOR 31; ASOR, 1956)
  • Moshe Greenberg, 'Some Postulates of Biblical Criminal Law,' in Yehezkel Kaufmann Jubilee Volume (Magnes, 1960)
  • Reuven Yaron, The Laws of Eshnunna (Magnes, 1969; rev. 1988)
  • Shalom M. Paul, Studies in the Book of the Covenant in the Light of Cuneiform and Biblical Law (VTSup 18; Brill, 1970)
  • J. J. Finkelstein, The Ox That Gored (TAPS 71.2; American Philosophical Society, 1981)
  • Raymond Westbrook, Studies in Biblical and Cuneiform Law (CahRB 26; Gabalda, 1988)
  • Eckart Otto, Wandel der Rechtsbegründungen in der Sozialgeschichte des antiken Israel (Brill, 1988); Theologische Ethik des Alten Testaments (Kohlhammer, 1994)
  • Bernard M. Levinson, Deuteronomy and the Hermeneutics of Legal Innovation (Oxford, 1997)
  • Harry A. Hoffner Jr., The Laws of the Hittites: A Critical Edition (Brill, 1997)
  • John H. Walton, Ancient Near Eastern Thought and the Old Testament (Baker Academic, 2006)
  • Kenton L. Sparks, Ancient Texts for the Study of the Hebrew Bible (Hendrickson, 2005)
  • Joshua Berman, Created Equal: How the Bible Broke with Ancient Political Thought (Oxford, 2008)
  • David P. Wright, Inventing God's Law: How the Covenant Code of the Bible Used and Revised the Laws of Hammurabi (Oxford, 2009)
  • Raymond Westbrook, ed., A History of Ancient Near Eastern Law, 2 vols. (HdO; Brill, 2003)
  • John Van Seters, A Law Book for the Diaspora: Revision in the Study of the Covenant Code (Oxford, 2003)
  • Bruce Wells and F. Rachel Magdalene, eds., Law from the Tigris to the Tiber (Eisenbrauns, 2009)
  • William H. C. Propp, Exodus 19-40 (Anchor Bible; Doubleday, 2006)