Twilight of the Idols
In "Twilight of the Idols" Nietzsche demonstrates the "error of false causality" just before the "error of free will":