Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
malik:16-25Yaḥyá > Mālik > Balaghah

Yahya related to me from Malik that he had heard that Uthman ibn Affan and Abdullah ibn Umar and Abu Hurayra used to pray over the dead, both men and women, in Madina. They would put the men nearer to the imam and the women nearer to the qibla.  

مالك:١٦-٢٥حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ أَنَّهُ بَلَغَهُ

أَنَّ عُثْمَانَ بْنَ عَفَّانَ وَعَبْدَ اللَّهِ بْنَ عُمَرَ وَأَبَا هُرَيْرَةَ كَانُوا يُصَلُّونَ عَلَى الْجَنَائِزِ بِالْمَدِينَةِ الرِّجَالِ وَالنِّسَاءِ فَيَجْعَلُونَ الرِّجَالَ مِمَّا يَلِي الإِمَامَ وَالنِّسَاءَ مِمَّا يَلِي الْقِبْلَةَ