The Prophet ﷺ took a pledge from us at the time of allegiance that we would not engage in wailing for the dead, but none of us fulfilled it except five women, Umm Sulaym, Umm Ala, the daughter of Abu Sabra who was the wife of Muaz, and two other women, or the daughter of Abu Sabra, the wife of Muaz, and one other woman.
أخذ علينا النبي ﷺ عند البيعة أن لا ننوح، فما وفت منا امرأة غير خمس نسوة: أم سليم، وأم العلاء، وابنة أبي سبرة امرأة معاذ، وامرأتين أو ابنة أبي سبرة، وامرأة معاذ، وامرأة أخرى.
Bukhari related it in the Book of Funerals (1306), and Muslim in the Book of Funerals (936), both through the route of Hammad bin Zayd, who said, Ayub narrated to us, from Muhammad, from Umm Atiya, and she mentioned it.Qadi Iyad said, the meaning of her statement, "None of us women fulfilled it except five," is that none of those who pledged allegiance with her on that fulfilled it. That is, she did not mean by this statement that no Muslim women other than five gave up wailing, rather she meant among those who pledged allegiance to the Messenger of Allah ﷺ along with her.