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

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

Book Ref: Muwatta Imam Malik Book 16 Hadith 546
Web Ref:  Muwatta Imam Malik Book 16 Hadith 24