كتاب المقدمات
The Book of Miscellany
(39)
Chapter: Rights of Neighbors
(39)
- باب حق الجار والوصية به
Riyad as-Salihin 311
'Abdullah bin 'Umar (May Allah be pleased with them) reported:
Messenger of Allah (ﷺ) said, "The best of companions with Allah is the one who is best to his companions, and the best of neighbours to Allah is the one who is the best of them to his neighbour".

[At-Tirmidhi, who classified it as Hadith Hasan].

وعن عبد الله بن عمر رضي الله عنهما قال‏:‏ قال رسول الله صلى الله عليه وسلم‏:‏ "‏خير الأصحاب عند الله تعالى خيرهم لصاحبه، وخير الجيران عند الله تعالى خيرهم لجاره‏"‏ ‏(‏‏(‏رواه الترمذي وقال‏:‏ حديث حسن‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 311
In-book reference : Introduction, Hadith 311