Language:
كتاب الجنائز
23  
Funerals (Al-Janaa'iz)
(45)
Chapter: The forbiddance of wailing and crying aloud
(45)
باب مَا يُنْهَى عَنِ النَّوْحِ، وَالْبُكَاءِ، وَالزَّجْرِ، عَنْ ذَلِكَ
Sahih al-Bukhari 1306

Narrated Um 'Atiyya:

At the time of giving the pledge of allegiance to the Prophet (ﷺ) one of the conditions was that we would not wail, but it was not fulfilled except by five women and they are Um Sulaim, Um Al-`Ala', the daughter of Abi Sabra (the wife of Mu`adh), and two other women; or the daughter of Abi Sabra and the wife of Mu`adh and another woman.

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ عَبْدِ الْوَهَّابِ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، حَدَّثَنَا أَيُّوبُ، عَنْ مُحَمَّدٍ، عَنْ أُمِّ عَطِيَّةَ ـ رضى الله عنها ـ قَالَتْ أَخَذَ عَلَيْنَا النَّبِيُّ صلى الله عليه وسلم عِنْدَ الْبَيْعَةِ أَنْ لاَ نَنُوحَ، فَمَا وَفَتْ مِنَّا امْرَأَةٌ غَيْرَ خَمْسِ نِسْوَةٍ أُمِّ سُلَيْمٍ وَأُمِّ الْعَلاَءِ وَابْنَةِ أَبِي سَبْرَةَ امْرَأَةِ مُعَاذٍ وَامْرَأَتَيْنِ أَوِ ابْنَةِ أَبِي سَبْرَةَ وَامْرَأَةِ مُعَاذٍ وَامْرَأَةٍ أُخْرَى‏.‏
Reference : Sahih al-Bukhari 1306
In-book reference : Book 23, Hadith 64
USC-MSA web (English) reference : Vol. 2, Book 23, Hadith 393
  (deprecated numbering scheme)