Exodus 21:2

2 aWhen you buy a Hebrew slave,
Or servant; the Hebrew term  ‘ebed designates a range of social and economic roles; also verses 5, 6, 7, 20, 21, 26, 27, 32 (see Preface)
he shall serve six years, and in the seventh he shall go out free, for nothing.

Deuteronomy 15:12

12 cIf your brother, a Hebrew man or a Hebrew woman, is sold
Or sells himself
to you, he shall serve you six years, and in the seventh year you shall let him go free from you.
Copyright information for ESV