46 You may acquire them for yourselves and for your descendants as permanent property. You may work them as slaves. However, do not treat the Israelites harshly. They are your relatives.
47 “Someone who is a foreigner without a permanent home among you may become rich, and your relative living with him may be poor. The poor Israelite may sell himself to that foreigner or a member of his family.
48 After he has sold himself, he has the right to be bought back. One of his brothers may buy him back.
49 His uncle, his cousin, or some other relative could also buy him back. If he becomes rich, he could buy his own freedom.
50 Then he and his buyer must take into account the number of years from the year he was bought until the year of jubilee. His sale price will be adjusted based on the number of years he was with his buyer, like the wages of a hired worker.
51 If there are many years left, he must refund from his purchase price an amount equal ⌊to those years⌋.
52 If there are only a few years left until the year of jubilee, he must take them into account. He must refund from his purchase price an amount equal to those years.