Umm Atiya reported,

The Prophet ﷺ took a pledge from us at the time of allegiance that we would not wail over the dead. None of us kept that pledge 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 1306

Sahih

حدثنا عبد الله بن عبد الوهاب حدثنا حماد بن زيد حدثنا أيوب عن محمد

عن أم عطية رضي الله عنها قالت

أخذ علينا النبي ﷺ عند البيعة أن لا ننوح فما وفت منا امرأة غير خمس نسوة أم سليم وأم العلاء وابنة أبي سبرة امرأة معاذ وامرأتين أو ابنة أبي سبرة وامرأة معاذ وامرأة أخرى

البخاري 1306صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
What is prohibited regarding wailing, weeping, and the forbiddance of that
Numbering
Darussalam 1306
Bukhari 1306