Exodus 21:2
2 iWhen you buy a Hebrew slave,1 he shall serve six years, and in the seventh he shall go out free, for nothing.
Deuteronomy 15:12
12 z“If your brother, a Hebrew man or a Hebrew woman, is sold1 to you, he shall serve you six years, and in the seventh year you shall let him go free from you.