Leviticus 25:39

If your brother, having been compelled by poverty, will have sold himself to you, you shall not oppress him with the servitude of indentured servants

Other versions

King James Version

And if thy brother that dwelleth by thee be waxen poor, and be sold unto thee; thou shalt not compel him to serve as a bondservant:

English Standard Version

"If your brother becomes poor beside you and sells himself to you, you shall not make him serve as a slave:

New International Version

"'If one of your countrymen becomes poor among you and sells himself to you, do not make him work as a slave.