Anas bin Malik reported,

The Prophet of Allah ﷺ said, "When a servant is placed in his grave and his companions turn away from him..." and he mentioned the rest of the hadith like the narration of Shayban from Qatada.

Muslim 7218

Sahih

حدثني عمرو بن زرارة أخبرنا عبد الوهاب يعني ابن عطاء عن سعيد عن قتادة

عن أنس بن مالك

أن نبي الله ﷺ قال إن العبد إذا وضع في قبره وتولى عنه أصحابه فذكر بمثل حديث شيبان عن قتادة

مسلم 7218صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Paradise and the description of its bliss and its people
Chapter
Presenting the deceased's seat in Paradise or Hell to them, and affirming the punishment of the grave and seeking refuge from it
Numbering
Darussalam 7218
Muslim 7218