The Prophet ﷺ said "Gabriel continued to recommend me about treating the neighbors Kindly and politely so much so that I thought he would order me to make them as my heirs. (Using translation from Bukhārī 6014)
"أتانى جبريلُ فما زال يوصينى بالجارِ حتى ظننت أنه يُوَرَّثُهُ".