בבא קמא ז:ג · Bava Kamma 7:3

גָּנַב עַל פִּי שְׁנַיִם וְטָבַח וּמָכַר עַל פִּיהֶם, וְנִמְצְאוּ זוֹמְמִין, מְשַׁלְּמִין הַכֹּל. גָּנַב עַל פִּי שְׁנַיִם וְטָבַח וּמָכַר עַל פִּי שְׁנַיִם אֲחֵרִים, אֵלּוּ וְאֵלּוּ נִמְצְאוּ זוֹמְמִין, הָרִאשׁוֹנִים מְשַׁלְּמִים תַּשְׁלוּמֵי כֶפֶל, וְהָאַחֲרוֹנִים מְשַׁלְּמִין תַּשְׁלוּמֵי שְׁלֹשָׁה. נִמְצְאוּ אַחֲרוֹנִים זוֹמְמִין, הוּא מְשַׁלֵּם תַּשְׁלוּמֵי כֶפֶל, וְהֵן מְשַׁלְּמִין תַּשְׁלוּמֵי שְׁלֹשָׁה. אֶחָד מִן הָאַחֲרוֹנִים זוֹמֵם, בָּטְלָה עֵדוּת שְׁנִיָּה. אֶחָד מִן הָרִאשׁוֹנִים זוֹמֵם, בָּטְלָה כָּל הָעֵדוּת, שֶׁאִם אֵין גְּנֵיבָה אֵין טְבִיחָה וְאֵין מְכִירָה:
If one stole an ox or a sheep, as established based on the testimony of two witnesses, and he subsequently slaughtered the animal or sold it, also based on the testimony of the same witnesses, and these witnesses were found to be conspiring witnesses, these witnesses pay everything, i.e., not only the principal amount but also the fourfold or fivefold payment. This is in accordance with the Torah’s decree with regard to conspiring witnesses: “You shall do to him as he had conspired to do to his brother” (Deuteronomy 19:19). Since these witnesses attempted to obligate the alleged thief to pay the fourfold or fivefold payment, they themselves must pay that full amount. With regard to one who stole an ox or a sheep, as established based on the testimony of two witnesses, and he subsequently slaughtered the animal or sold it, based on the testimony of two other witnesses, if both these witnesses and those witnesses were found to be conspiring witnesses, the first set of witnesses, who testified about the theft of the animal, pay the alleged thief the double payment, which is what they had conspired to cause him to pay. And the last set of witnesses, who attested to the slaughter or sale of the animal, pay the alleged thief a twofold payment for a sheep or a threefold payment for an ox, which they had conspired to cause him to pay over and above the double payment. If only the witnesses in the last set were found to be conspiring witnesses, while the testimony about the theft remains intact, the thief pays the double payment to the animal’s owner and the second set of witnesses pay the alleged thief the twofold or threefold payment, the amount over and above the double payment, which is what they had conspired to cause him to pay. If only one individual from the last set of witnesses was found to be a conspiring witness, the second testimony is nullified, as it was not submitted by two valid witnesses, whereas the first testimony remains intact. If one individual from the first set of witnesses is found to be a conspiring witness, the entire testimony concerning the thief is nullified. The reason is that if there is no theft established by reliable testimony there is no liability for slaughtering the animal and there is no liability for selling it.

Word-by-word Breakdown (מילים ושרשים)

גָּנַב → stole [ג - נ - ב]עַל → based on [ע - ל]פִּי → the testimony of [פ - ה]שְׁנַיִם → two [ש - נ - ה]וְטָבַח → and slaughtered [ט - ב - ח]וּמָכַר → or sold [מ - כ - ר]עַל → based on [ע - ל]פִּיהֶם → their testimony [פ - ה]וְנִמְצְאוּ → and were found [מ - צ - א]זוֹמְמִין → conspiring [ז - מ - ם]מְשַׁלְּמִין → pay [ש - ל - ם]הַכֹּל → everything [כ - ל - ל]גָּנַב → stole [ג - נ - ב]עַל → based on [ע - ל]פִּי → the testimony of [פ - ה]שְׁנַיִם → two [ש - נ - ה]וְטָבַח → and slaughtered [ט - ב - ח]וּמָכַר → or sold [מ - כ - ר]עַל → based on [ע - ל]פִּי → the testimony of [פ - ה]שְׁנַיִם → two [ש - נ - ה]אֲחֵרִים → other [א - ח - ר]אֵלּוּ → these וְאֵלּוּ → and those נִמְצְאוּ → were found [מ - צ - א]זוֹמְמִין → conspiring [ז - מ - ם]הָרִאשׁוֹנִים → the first [ר - א - ש]מְשַׁלְּמִים → pay [ש - ל - ם]תַּשְׁלוּמֵי → payments of [ש - ל - ם]כֶפֶל → double [כ - פ - ל]וְהָאַחֲרוֹנִים → and the last [א - ח - ר]מְשַׁלְּמִין → pay [ש - ל - ם]תַּשְׁלוּמֵי → payments of [ש - ל - ם]שְׁלֹשָׁה → three (fourfold/fivefold) [ש - ל - ש]נִמְצְאוּ → were found [מ - צ - א]