Mishna: A judge who [incorrectly] finds the liable exempt, or obligates the innocent, declares the pure impure or the impure pure, the judgment stands and the judge compensates out of personal property. An expert for the court is exempt.
#DafYomi 28b