Al-Kāfi

Hadith 666
funeral-prayer
4ـ أَبُو عَلِيٍّ الأشْعَرِيُّ عَنْ مُحَمَّدِ بْنِ عَبْدِ الْجَبَّارِ عَنْ صَفْوَانَ بْنِ يَحْيَى عَنِ الْعَلاَءِ عَنْ مُحَمَّدِ بْنِ مُسْلِمٍ عَنْ أَحَدِهِمَا (عَلَيْهِما الْسَّلام) قَالَ سَأَلْتُهُ عَنِ الرِّجَالِ وَالنِّسَاءِ كَيْفَ يُصَلَّى عَلَيْهِمْ قَالَ الرِّجَالُ أَمَامَ النِّسَاءِ مِمَّا يَلِي الإِمَامَ يُصَفُّ بَعْضُهُمْ عَلَى أَثَرِ بَعْضٍ.
4. Abu Ali al-Ash’ariy has narrated from Muhammad ibn ‘Abd al-Jabbar from Safwan ibn Yahya from al-‘Ala’ from Muhammad ibn Muslim who has said the following: “I once asked one of the two Imam, (abu Ja‘far or abu ‘Abd Allah), ‘Alayhim al-Salam, about the case of deceased men and women as to how Salah (prayer) is performed for them. He (the Imam) said, ‘Men are placed before women from the side of the Imam in a queue one after the other.’”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī