Islamic Interpretation of Dreams (Ibn-i Sirin):

In a dream, distance signifies injustice or being deprived from something.

The distance between two people in a dream means a fight, resignation or death. Distance in a dream also means closeness, since it is the opposite. Walking a long distance in a dream means hardships or taking a difficult journey.