Bava Kama4: 3
שׁוֹר שֶׁל יִשְׂרָאֵל שֶׁנָּגַח שׁוֹר שֶׁל הֶקְדֵּשׁ, וְשֶׁל הֶקְדֵּשׁ שֶׁנָּגַח לְשׁוֹר שֶׁל יִשְׂרָאֵל, פָּטוּר, שֶׁנֶּאֱמַר: ,,שׁוֹר רֵעֵהוּ”, וְלֹא שׁוֹר שֶׁל הֶקְדֵּשׁ.  שׁוֹר שֶׁל יִשְׂרָאֵל שֶׁנָּגַח לְשׁוֹר שֶׁל עוֹבֵד כּוֹכָבִים, פָּטוּר; וְשֶׁל עוֹבֵד כּוֹכָבִים שֶׁנָּגַח לְשׁוֹר שֶׁל יִשְׂרָאֵל — בֵּין תָּם בֵּין מוּעָד — מְשַׁלֵּם נֶזֶק שָׁלֵם.
[If] a bull of a Jew gores a bull consecrated to the Temple, or [if] a bull consecrated to the Temple gores a bull of a Jew, [its owner] is exempt, as it is said (Exodus 21:35): another's bull, but not a bull consecrated to the Temple.  [If] a bull of a Jew gores a bull of a gentile, [the Jew] is exempt; but [if a bull] of a gentile gores a bull of a Jew —- whether [it be] a tam or a muad —- [the gentile] pays the full damages.