Hadith 1578
Abu Hurairah (May Allah be pleased with him) said:
وعن أبي هريرة رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم : " اثنتان في الناس هما بهم كفر: الطعن في النسب، والنياحة على الميت" ((رواه مسلم)).
The Messenger of Allah (ﷺ) said, "Two matters are signs of disbelief on the part of those who indulge in them: Defaming and speaking evil of a person's lineage, and wailing over the dead." [Muslim].
In plain words
Two habits are named here as marks of disbelief: insulting a person's family and ancestry, and loud wailing over the dead. Both are warned against in the strongest terms.
Reference : Riyad as-Salihin 1578 In-book reference : Book 17, Hadith 68