Mishnah Sanhedrin 1:2
Antigonus the Prince asked Rabban Yoḥanan ben Zakkai, “The ox will be stoned and the master also die (Ex. 21:29). Why?”
He said to him, “The accomplice of a thief is like a thief.”
When he went out, the student asked, “Master, this one you pushed away with a reed, but to us, what will you reply?”
He said to them, “It is written, The ox will be stoned and also its master will die…
This Talmud passage can be found on page 93 of Jacob Neusner’s book, A Life of Yohanan b. Zakkai, Ca. 1-80 C.E., published by E.J. Brill, which can often be purchased online.