Rebbi says: Come and see that "forever" is fifty years, it being written "and he shall serve him forever" — until the Yovel. How so? With the arrival of the Yovel, he goes free. With the death of the master he goes free.
The Torah Commands Freedom Forever, but the Jubilee Trumps
Mekhilta Tractate Nezikin 2:24