Exodus 21:2

NLT
New Living Translation

2“If you buy a Hebrew slave, he may serve for no more than six years. Set him free in the seventh year, and he will owe you nothing for his freedom.