493 - وَ رَوَى هِشَامُ بْنُ سَالِمٍ عَنْ أَبِي عَبْدِ اَللَّهِ عَلَيْهِ اَلسَّلاَمُ أَنَّهُ قَالَ - «لاَ بَأْسَ بِأَنْ يُقَدَّمَ اَلرَّجُلُ وَ تُؤَخَّرَ اَلْمَرْأَةُ أَوْ تُقَدَّمَ اَلْمَرْأَةُ وَ يُؤَخَّرَ اَلرَّجُلُ. - يعني في الصلاة على الميت. وأفضل المواضع في الصلاة على الميت الصف الأخير، والعلة في ذلك أن النساء كن يختلطن بالرجال في الصلاة على الجنازة.
Hadith.493 - Hisham ibn Salim narrated from Imam Jafar ibn Muhammad Al-Sadiq that He said: "There is no harm in placing the man in front and the woman behind or in placing the woman in front and the man behind"
[AL SADUQ]
This is referring to the arrangement of the funeral prayer for the deceased.
The preferred position in the funeral prayer is the last row, and the reason for this is that women used to mix with men during the funeral prayer.