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.

Exodus 23:10

Laws About the Sabbath and Festivals

10 c“For six years you shall sow your land and gather in its yield,

Deuteronomy 15:12

12 dIf 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