Muhammad ibn Ahmad, from Ahmad ibn al-Hasan ibn Ali, from Amr ibn Sa’id, from Musaddiq ibn Sadaqah, from Ammar ibn Musa, from Abu Abdillah عليه السلام, peace be upon him:
Imam al-Sadiq عليه السلام was asked regarding a man who performs the funeral prayer over two or three deceased persons (together), how should he pray over them? Imam عليه السلام said: “If they are three, or two, or ten, or more than that, let him perform one prayer over them. He (leader of prayer) should pronounce five takbirs over them, just as he does for a single deceased person. He has thus prayed over all of them. He should place one deceased person, then place the next one at the buttocks (Aliyah) of the first, then place the head of the third at the buttocks (aliyah) of the second, in a stepped arrangement (shibh al-madrar) until he finishes arranging all of them, however many they may be. Once he has arranged them like this, he should stand in the middle and pronounce five takbirs, doing just as he would when praying over a single deceased person.” Imam عليه السلام was asked, “And if they are deceased men and women?” Imam عليه السلام said: “He begins with the men, placing the head of the second at the buttocks (Aliyah) of the first, until he finishes with all the men. Then he places the head of the woman at the buttocks (Aliyah) of the last man. Then he places the head of the next woman at the head of the first woman, until he finishes arranging all of them. Once he has arranged them in this way, he stands in the middle, in the center of the men, and pronounces the takbirs and performs the prayer over them just as he does when praying over a single deceased person.” Imam عليه السلام was asked about a deceased person over whom the funeral prayer was performed, and after the imam (of prayer) had given the taslim, it was discovered that the deceased was turned around, with his feet where his head should have been. Imam عليه السلام said: “He should be straightened, and the prayer should be repeated over him. And if he had been carried away but not yet buried, then it is to be repeated. But if he has already been buried, then the prayer has passed and is not to be repeated while he is buried.”