Lev Leviticus, chapter Book of Leviticus, chapter 25
During the years that he is working for the man who bought him, the man who bought him must treat him like he would treat a hired worker, and all of you must make sure that his owner does not treat him cruelly.