post hoc ergo propter hoc

(noun) post hoc

logical fallacy (generic term)