Exod 21:2

2When you buy a male Hebrew slave, he shall serve six years, but in the seventh he shall go out a free person, without debt.