Hume thought that our notion of cause included the ideas of temporal priority and contiguity. Temporal priority means that causes must precede their effects in time. Contiguity means that causes and effects must be at places next to each other.
Temporal priority and contiguity