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
Examples
We wore blue jerseys for the first time, then won the match. The jerseys caused the win.
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.