Exodus 21:2-3

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.
3If he comes in single, he shall go out single; if he comes in married, then his wife shall go out with him.
Copyright information for ESV