Sotah9: 7
נִמְצָא הַהוֹרֵג עַד שֶׁלֹּא נֶעֶרְפָה הָעֶגְלָה — תֵּצֵא וְתִרְעֶה בָּעֵדֶר. מִשֶּׁנֶּעֶרְפָה הָעֶגְלָה — תִּקָּבֵר בִּמְקוֹמָהּ, שֶׁעַל סָפֵק בָּאת מִתְּחִלָּתָהּ, כִּפְּרָה סְפֵקָהּ וְהָלְכָה לָהּ. נֶעֶרְפָה הָעֶגְלָה וְאַחַר כָּךְ נִמְצָא הַהוֹרֵג — הֲרֵי זֶה יֵהָרֵג.
If the [identity of the] murderer is discovered before the calf has been decapitated, it should go out and pasture with the flock. [If] after the calf has been decapitated, it must be buried at its site, for it originally came [to atone] for an uncertain situation —- it has atoned for its uncertainty and its purpose has been fulfilled.  If the calf was decapitated and subse-quently the murderer was discovered, he should be executed.