Logical fallacy

Post hoc ergo propter hoc

Uses temporal succession as sufficient evidence that the earlier event caused the later one.

Also called Post hoc ergo propter hoc, After this, therefore because of this

A blue sports jersey hanging immediately before a match trophy in a timeline

Examples

We wore blue jerseys for the first time, then won the match. The jerseys caused the win.
The jersey change occurred before the win. A causal account would need evidence that rules out other ways the match could have gone.
The printer jammed an hour after I moved my desk, so moving my desk caused the jam.
The river rose after the bells rang, so the ringing raised the river.

A similar case that can be sound

Water levels rose only downstream of randomly scheduled dam releases, compared with control sites.