The Prophet ﷺ reported from his Lord that He said, "No Muslim servant dies and three households of his nearest neighbors testify well of him except that Allah
says, 'I have accepted the testimony of My servants regarding what they knew, and I have forgiven him for what I know.'"
حدثنا عفان حدثنا مهدي بن ميمون حدثنا عبد الحميد صاحب الزيادي عن شيخ من أهل البصرة
عن النبي ﷺ يرويه عن ربه عز وجل قال ما من عبد مسلم يموت يشهد له ثلاثة أبيات من جيرانه الأدنين بخير إلا قال الله عز وجل قد قبلت شهادة عبادي على ما علموا وغفرت له ما أعلم
Its chain is daif, it contains a narrator who is not named. It will come again with this same chain at 9266, and the text will come again with a sahih chain at 13475 from Anas. Haythami declared it sahih in Majma 3/4, as did Hakim in 1/378, in the chapter on funerals.