Code of Hammurabi
Punishment for malevolent magic is addressed in the earliest law codes which were preserved; in both ancient Egypt and Babylonia, where it played a conspicuous part. The Code of Hammurabi (18th century BC short chronology) prescribes that