Abu Malik Ashari reported,

The Prophet ﷺ said, "There are four practices from the days of ignorance that my community will not abandon: boasting about lineage, attacking others' ancestry, attributing rainfall to the stars, and wailing over the dead."He also said, "The wailing woman, if she does not repent before her death, will be raised on the Day of Resurrection wearing a garment of tar and an armor of scabs."

Azami 3556

Sahih

عن أبي مالك الأشعري

أن النبي ﷺ قال: أربع في أمتي من أمر الجاهلية لا يتركونهن: الفخر في الأحساب، والطعن في الأنساب، والاستسقاء بالنجوم، والنياحة. وقال: النائحة إذا لم تتب قبل موتها، تقام يوم القيامة، وعليها سربال من قطران، ودرع من جرب.

الأعظمي 3556صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prohibition of wailing over the deceased, and permissibility of weeping and showing grief over him
Section
Wailing is from the matters of Jahiliyyah
Numbering
Jami al-Kamil 3556 (2nd edition)
Azami 3556