In dreams, space and time can become confused.
Dreaming of something that is far away may indicate that it is far away in time. This may be future or past, depending on the dream.
A long way in front would be future, a long way behind would be past. Near or close would mean recently, or in the immediate future.
[1]