Leviticus 25:54

54 And if they have not been redeemed in any of these ways, they and their children with them shall go free in the jubilee year.