The oldest evidence of slavery dates to around 11,000 years ago. Anthropologists disovered a group of pygme remains in southern Africa that were shackled together.
As far as recorded and confirmed slavery, the origins are either in ancient Egypt or ancient Sumeria. Egyptian hieroglyphics show that they indeed enslaved other human beings. Hammurabi's code is a detailed outline on law's regarding how to treat slaves