It is narrated from Musa bin Talhah that he said: "I offered the funeral prayer with Sayyiduna Uthman bin Affan (may Allah be pleased with him) over the biers of men and women. He placed the men's (biers) on his side (that is, near the imam) and placed the women's biers towards the qiblah, and he said four takbirs."
Imam Musaddad recorded it as mawquf, and all its narrators are thiqat (trustworthy).
It is narrated from one Companion (may Allah be pleased with him) from among the Companions (may Allah be pleased with them) of the Messenger of Allah (peace and blessings be upon him) that he "used to place the men behind the women (in arranging the biers for the funeral prayer), and place the women on his side, that is, near himself."
Muhammad bin Yahya bin Abi Umar recorded it, and Imam al-Nasa'i recorded it from the narration of Sayyiduna Ibn Umar (may Allah be pleased with them both).
It is narrated from Sayyiduna al-Hasan bin Ali (may Allah be pleased with them both) that he said: I heard the Messenger of Allah (peace and blessings be upon him) say, or (he said that) the Messenger of Allah (peace and blessings be upon him) said: "When a funeral is present and the ruler of the time is also present (there), then the ruler has the greater right to lead the funeral prayer over it."
Imam Ahmad bin Mani' recorded it with a chain that includes a narrator named al-Hasan bin Umarah, and he is da'if (weak).