Hadith 9690

حَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ ، قَالَ : حَدَّثَنَا الْأَعْمَشُ ، عَنْ أَبِي صَالِحٍ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ : قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " ثِنْتَانِ هُمَا بِالنَّاسِ كُفْرٌ : نِيَاحَةٌ عَلَى الْمَيِّتِ ، وَطَعْنٌ فِي النَّسَبِ " .
It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) used to say: Two things are acts of disbelief; one is wailing (over the dead) and the other is casting aspersions on someone's lineage.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 9690
Hadith Grading حکم دارالسلام: إسناده صحيح، م: 67