Leviticus 25:42-43
39-46. if thy brother . . . be waxen poor, and be sold unto thee, thou shalt not compel him to serve as a bond-servant—An Israelite might be compelled, through misfortune, not only to mortgage his inheritance, but himself. In the event of his being reduced to this distress, he was to be treated not as a slave, but a hired servant whose engagement was temporary, and who might, through the friendly aid of a relative, be redeemed at any time before the Jubilee. The ransom money was determined on a most equitable principle. Taking account of the number of years from the proposal to redeem and the Jubilee, of the current wages of labor for that time, and multiplying the remaining years by that sum, the amount was to be paid to the master for his redemption. But if no such friendly interposition was made for a Hebrew slave, he continued in servitude till the year of Jubilee, when, as a matter of course, he regained his liberty, as well as his inheritance. Viewed in the various aspects in which it is presented in this chapter, the Jubilee was an admirable institution, and subservient in an eminent degree to uphold the interests of religion, social order, and freedom among the Israelites.
Deuteronomy 15:12
12. if thy brother, an Hebrew man, or an Hebrew woman, be sold unto thee—The last extremity of an insolvent debtor, when his house or land was not sufficient to cancel his debt, was to be sold as a slave with his family (Le 25:39; 2Ki 4:1; Ne 5:1-13; Job 24:9; Mt 18:25). The term of servitude could not last beyond six years. They obtained their freedom either after six years from the time of their sale or before the end of the seventh year. At the year of jubilee, such slaves were emancipated even if their six years of service were not completed [see on Le 25:39].
Jeremiah 34:14
14. At the end of seven years—that is, not on the eighth year, but within the limit of the seventh year, not later than the end of the seventh year (Ex 21:2; 23:10; De 15:12). So "at the end of three years" (De 14:28; 2Ki 18:10), and "after three days, I will rise again" (Mt 27:63), that is, on the third day (compare Mt 27:64).