Jabir b. Samura said the Prophet was brought an unsaddled horse which he rode when he went away after the funeral of Ibn ad-Dahdah, and they went on foot around him.
Jabir said God’s messenger had each pair of those killed at Uhud wrapped in a single garment and asked which of them knew more of the Qur’an. When one of them was pointed out to him, he had him put first in the side of the grave, and he said, “I shall be a witness to these men on the day of resurrection.” He ordered that they should be buried without the marks of blood being removed ; he did not pray over them, and they were not washed.
Al-Mughira b. Shu'ba reported the Prophet as saying, “A rider should go behind the bier, and those on foot should walk behind it, in front of it, on its right and on its left keeping near it. Prayer should be said over an abortion and forgiveness and mercy supplicated for its parents.”
Abu Dawud transmitted it. In the version of Ahmad, Tirmidhi, Nasa’i and Ibn Majah he said, “The rider should go behind the bier and those on foot wherever they wish round about it, and prayer should be said over an infant." In al-Masabih it is given on the authority of al-Mughira b. Ziyad.