Leviticus 25:39 CEB

39 If one of your fellow Israelites faces financial difficulty with you and sells themselves to you, you must not make him work as a slave.