The Messenger of Allah ﷺ said, "Jibreel kept urging me to take care of the neighbor until I thought he would make him an heir."
أن رسول الله ﷺ قال: ما زال جبريل يوصيني بالجار حتى ظننت أنه سيورثه.
Bukhari narrated it in al-Adab (6015) and Muslim in al-Birr wal-Silah (2625), both from the hadith of Yazid bin Zuray, from Umar bin Muhammad, from his father, from Ibn Umar, who mentioned it.