(1) The Book of Faith
كتاب الإيمان
(30) Chapter: Use of the word Kufr with regard to slandering people's lineage and wailing
(30) باب إِطْلاَقِ اسْمِ الْكُفْرِ عَلَى الطَّعْنِ فِي النَّسَبِ وَالنِّيَاحَةِ عَلَى الْمَيِّتِ ‏‏
Sahih Muslim 67 

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace and blessings be upon him) observed:

Two (things) are found among men which are tantamount to unbelief: slandering one's lineage and lamentation on the dead.
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، ح وَحَدَّثَنَا ابْنُ نُمَيْرٍ، - وَاللَّفْظُ لَهُ - حَدَّثَنَا أَبِي وَمُحَمَّدُ بْنُ عُبَيْدٍ، كُلُّهُمْ عَنِ الأَعْمَشِ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ اثْنَتَانِ فِي النَّاسِ هُمَا بِهِمْ كُفْرٌ الطَّعْنُ فِي النَّسَبِ وَالنِّيَاحَةُ عَلَى الْمَيِّتِ ‏"‏ ‏.‏
Reference : Sahih Muslim 67
In-book reference : Book 1, Hadith 133
USC-MSA web (English) reference : Book 1, Hadith 128
  (deprecated numbering scheme)