´It was narrated that Abu Hurairah said:` "The Messenger of Allah [SAW] said: 'Seek refuge with Allah from a bad neighbor in one's permanent abode, for one's neighbor in the desert will change.'"
Explanation & Benefits
Hafiz Muhammad Ameen
By permanent residence is meant cities and settlements where houses are built that last for centuries, and by temporary neighbor is meant the neighbor during travel or in the desert, where temporary tents are set up and are taken down after a short while. It is evident that the neighbor in a settlement remains a neighbor for a lifetime, therefore, he should be good; otherwise, life will become miserable.
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 5504