Abu Ghalib Nafi' (may Allah have mercy on him) narrated: "I was present with Sayyiduna Anas (may Allah be pleased with him). He led the funeral prayer for a man and stood near the head of the bier. Then the bier of a woman from Quraysh was brought, and he led her funeral prayer and stood near about the middle of the bier. Among those attending the funeral was al-Ala' bin Ziyad al-Adawi (may Allah have mercy on him). When he saw the difference in how he stood, he said: 'O Abu Hamzah, did the Messenger of Allah (peace and blessings be upon him) also stand for the woman and the man in the same way that you stood?' He said: 'Yes.' Then he turned to us and said: 'Remember this.'"
Related hadith on this topic