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 the lineage of others, seeking rain through the stars, and wailing over the dead."

Azami 13032

Sahih

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

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

الأعظمي 13032صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Ahzab
Section
His saying, "Call them by their fathers. It is more just in the sight of Allah. But if you do not know their fathers, then they are your brothers in religion and your allies. And there is no blame upon you for what you did by mistake, but only for what your hearts intended. And Allah is Forgiving, Merciful."
Numbering
Jami al-Kamil 13032 (2nd edition)
Azami 13032