شريعة حمورابي
The Sumerian king Code of Ur-Nammu includes laws relating to slaves, written circa 2100 – 2050 BCE; it is the oldest known tablet containing a law code surviving today. The Babylonian Code of Hammurabi, dating to c. 1700 BCE, also makes distinctions between the freeborn, freed and slave.