Waki said Ghalib, but it is actually Abu Ghalib, who reported from Anas that the body of a man was brought to him, and he stood at the head of the bier. Then the body of a woman was brought, and he stood lower down, level with the middle of the bier. When he had finished praying, Ala bin Ziyad said to him, "Abu Hamza, is this how the Messenger of Allah ﷺ used to stand for a man and a woman, just as we saw you do?"He replied, "Yes."Then Ala bin Ziyad turned to us and said, "Remember this."
حدثنا وكيع حدثني همام
وكيع غالب وإنما هو أبو غالب عن أنس أنه أتي بجنازة رجل فقام عند رأس السرير ثم أتي بجنازة امرأة فقام أسفل من ذلك حذاء السرير فلما صلى قال له العلاء بن زياد يا أبا حمزة أهكذا كان رسول الله ﷺ يقوم من الرجل والمرأة نحوا مما رأيتك فعلت قال نعم قال فأقبل علينا العلاء بن زياد فقال احفظوا
No references are available.
Its isnad is sahih. Abu Ghalib, whose name is confirmed as Ahmad, is Bahili Abdi, and he is trustworthy. Hammam is Ibn Yahya. The hadith was narrated by Bukhari 3/201 no. 1332 in Fath al-Bari, from Jundab, and by Muslim 2/664 no. 964, and Abu Dawud 3/208 no. 3194.