It is narrated from Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him) that he said: "I am the last of the people to have been with the Messenger of Allah (peace and blessings be upon him) (in terms of meeting and nearness). We dug the grave for him (peace and blessings be upon him) and prepared the side-niche (lahd). Then, when the people had buried him and come out, I dropped my axe into the grave and said: 'My axe, my axe!' So I went (inside), picked it up and passed my hand over the pure body of the Prophet (peace and blessings be upon him)."
Abu Bakr bin Abi Shaybah and Ahmad bin Mani' recorded it.
The narration of Imam Abu Ya'la has the wording that Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him) said: "I am the last of the people to have been with the Messenger of Allah (peace and blessings be upon him)." He says: "When Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) came out of the grave and the Prophet (peace and blessings be upon him) had been buried, I threw my ring inside and said: 'O Abu al-Hasan, my ring (has fallen)!' He said: 'Go down and pick up your ring.' So I went down, took my ring and placed my hand on the blessed shroud, and then came out."
The chain of this narration revolves around Mujalid, and he is da'if (weak).