Leviticus 25:46-50 Good News Bible Catholic Edition (GNBDK)

46. and you may leave them as an inheritance to your sons, whom they must serve as long as they live. But you must not treat any of your fellow-Israelites harshly.

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.

Leviticus 25