As a laborer hired by the year they shall be under the alien’s authority, who shall not, however, rule with harshness over them in your sight.
The Egyptians subjected the Israelites to hard servitude
You shall not rule over them with harshness but shall fear your God.
You may keep them as a possession for your children after you, for them to inherit as property. These you may treat as slaves, but as for your fellow Israelites, no one shall rule over the other with harshness.
and if few years remain until the Jubilee year, they shall compute thus: according to the years involved they shall make payment for their redemption.