Leviticus 25:48-49

48 after they have sold themselves they shall have the right of redemption; one of their brothers may redeem them,
49 or their uncle or their uncle's son may redeem them, or anyone of their family who is of their own flesh may redeem them; or if they prosper they may redeem themselves.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.