Sanhedrin8: 6
הַבָּא בַמַּחְתֶּרֶת נִדּוֹן עַל שֵׁם סוֹפוֹ. הָיָה בָא בַמַּחְתֶּרֶת וְשָׁבַר אֶת הֶחָבִית, אִם יֶשׁ לוֹ דָמִים, חַיָּב; אִם אֵין לוֹ דָמִים, פָּטוּר.
One who enters through a tunnel is judged according to the eventual outcome. [If] he was coming through a tunnel and he broke a barrel, if his blood is accountable, he is liable; if his blood is not accountable, he is exempt.