The Prophet ﷺ said, "When a servant is placed in his grave and his companions turn away from him, so that he can still hear the sound of their sandals, two angels come to him and make him sit up..."
عن النبي ﷺ قال: إن العبد إذا وضع في قبره ولي وذهب أصحابه حتى إنه ليسمع قرع نعالهم- أتاه ملكان، فأقعداه…
Bukhari narrated it in the Book of Funerals (1338), and Muslim narrated it in the Description of Paradise (71/2870), both from the hadith of Yazid bin Zuray, who said, Saeed bin Abu Aruba narrated to us, from Qatada, from Anas bin Malik, and he related it, and their wording is identical.