حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا سُفْيَانُ، عَنِ الزُّهْرِيِّ، عَنْ سَالِمٍ، عَنْ أَبِيهِ، عَنْ عَامِرِ بْنِ رَبِيعَةَ، يَبْلُغُ بِهِ النَّبِيَّ صلى الله عليه وسلم ‏"‏ إِذَا رَأَيْتُمُ الْجَنَازَةَ فَقُومُوا لَهَا حَتَّى تُخَلِّفَكُمْ أَوْ تُوضَعَ ‏"‏ ‏.‏
Translation
Narrated Abu Sa’id Al Khudri

Abu Dawud said: This tradition has been narrated by al-Thawri (i.e. Sufyan) from Suhail, from his father on the authority of Abu Hurairah. This version has: until it (the bier) is placed on the ground. It has also been narrated by Abu Mu'wiyah from Suhail. This has: Until it is placed in the grave.

Abu Dawud said: Sufyan's version is more guarded than that of Abu Mu'awiyah.