Hadith.464 - Muhammad ibn Muslim narrated from one of them (Imam Muhammad ibn Ali Al-Baqir عليه السلام or Imam Jafar ibn Muhammad Al-Sadiq عليه السلام ) that he asked about walking with the funeral procession.
Imam عليه السلام replied: "In front of it, on its right side, on its left side, and behind it."