Leviticus 25:47-51-52 Good News Bible Catholic Edition (GNBDK)

47. Suppose a foreigner living with you becomes rich, while a fellow-Israelite becomes poor and sells himself as a slave to that foreigner or to a member of his family.

48. After he is sold, he still has the right to be bought back. One of his brothers

49. or his uncle or his cousin or another of his close relatives may buy him back; or if he himself earns enough, he may buy his own freedom.

50. He must consult the one who bought him, and they must count the years from the time he sold himself until the next Year of Restoration and must set the price for his release on the basis of the wages paid to a hired servant.

51-52. He must refund a part of the purchase price according to the number of years left,

Leviticus 25