Abu Aseeb or Abu Asim reported,

He was present at the funeral prayer for the Messenger of Allah ﷺ. The people asked, "How shall we pray over him?"He replied, "Enter in successive groups."So they would enter through one door, pray over him, then leave through the other door. When the Messenger of Allah ﷺ was placed in the lahd grave, Mughira said, "Something at his feet has not been properly arranged."They said to him, "Then go in and fix it."So he entered and reached in his hand, touching his feet, then said, "Pour the earth over him."They poured the earth over him until it reached halfway up his shins, then he came out. He used to say, "I am the one among you who had the most recent contact with the Messenger of Allah ﷺ."

Azami 3698

Sahih

عن أبي عسيب، أو أبي عسيم

أنه شهد الصلاة على رسول الله ﷺ، قالوا: كيف نصلي عليه؟ قال: ادخلوا أرسالا أرسالا، قال: فكانوا يدخلون من هذا الباب، فيصلون عليه، ثم يخرجون من الباب الآخر، قال: فلما وضع في الحده ﷺ قال المغيرة: قد بقي من رجليه شيء لم يصلحوه، قالوا: فادخل فأصلحه، فدخل وأدخل يده، فمس قدميه، فقال: أهيلوا على التراب، فأهالوا عليه التراب حتى بلغ أنصاف ساقية، تم خرج، فكان يقول: أنا أحدثكم عهدا برسول الله ﷺ.

الأعظمي 3698صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
Groups praying the funeral prayer in succession
Numbering
Jami al-Kamil 3698 (2nd edition)
Azami 3698