What is the origin of a pound of flesh?

A “pound of flesh” comes from Shakespeare’s play The Merchant of Venice. A debt collector named Shylock requests a pound of flesh from a merchant as payment for treating him poorly. While the demand was hefty, it was fair according to their contract.