Al-Husayn ibn Said from al-Hasan from Zurah from Sama’ah he said:
I asked Imam al-Sadiq عليه السلام about the funeral processions of men and women, when they are brought together. Imam عليه السلام said: “The man is placed slightly ahead of the woman, and the woman is placed slightly lower than that, at the level of his feet. And the imam (of Salat Al Mayyit) stands at the head of the deceased and prays over both of them together.” And I asked Imam عليه السلام about the prayer over the deceased. Imam عليه السلام said: “Five takbirs. You say when you pronounce the takbirs; ‘I bear witness that there is no God but Allah سبحانه وتعالى, alone, without any partner, and I bear witness that (Prophet) Muhammad صلى الله عليه وعلى آله وسلم is His سبحانه وتعالى servant and messenger. O’ Allah سبحانه وتعالى, send blessings upon (Prophet) Muhammad صلى الله عليه وعلى آله وسلم and the family of Muhammad صلى الله عليه وعلى آله وسلم and upon the Imams عليه السلام of guidance. And forgive us and our brothers who preceded us in faith, and do not place in our hearts any resentment toward those who have believed. Our Lord عز وجل, indeed You عز وجل are Kind and Merciful. O’ Allah سبحانه وتعالى, forgive our living and our dead, among the believing men and believing women, and unite our hearts upon the hearts of our best ones, and guide us, by Your permission, to the truth concerning that over which there is disagreement indeed, You عز وجل guide whom You عز وجل will to a straight path.’ If the second takbir interrupts you, it does not harm you, so say: ‘O’ Allah سبحانه وتعالى, this is Your servant, the son of Your servant, and the son of Your bondwoman. You عز وجل know him best. He is in need of You عز وجل, and You عز وجل are free of need from him. O’ Allah سبحانه وتعالى, overlook his bad deeds, And increase his good deeds, And forgive him, And have mercy on him, And illuminate his grave for him, And prompt him with his proof, And join him with his Prophet صلى الله عليه وعلى آله وسلم. Do not deprive us of his reward, and do not subject us to trial after him.’ Say this when you complete the five takbirs. And when you finish, give salam to your right. (said in taqiyyah, mentioned later)