The Messenger of Allah ﷺ said, "Jibreel kept urging me to take care of the neighbor until I thought he would make him an heir."
حدثنا هاشم قال حدثنا محمد يعني ابن طلحة عن زبيد عن مجاهد
قال رسول الله ﷺ ما زال جبريل عليه السلام يوصيني بالجار حتى ظننت أنه يورثه
Its isnad is sahih. Zayd is Ibn Harith al-Yami, reliable and firmly established, whose hadith is transmitted by the group. The hadith has already appeared at 24141.