Exodus 21:2

New American Standard Bible (NASB)
“If you buy a Hebrew slave, he shall serve for six years; but on the seventh he shall go out as a free man without payment.

Read Exodus 21:2 in other translations