From Wiktionary, the free dictionary
See post (“after”), propter (“because of”), hoc – neuter accusative of hic (“this”), and ergō (“therefore”).
post hoc ergo propter hoc
- (logic) after this, therefore because of this
- The logical fallacy that because something happens after something else, then the first event must be the cause of the second.