Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:2810cBishr b. al-Sarī > Sufyān > Saʿd b. Ibrāhīm > ʿAbdullāh b. Kaʿb b. Mālik from his father

This hadith has been narrated through a couple of other chains of transmitters, one which says "the similitude of the disbeliever" instead and another which agrees with the wording of the previous hadith.  

مسلم:٢٨١٠cوَحَدَّثَنِيهِ مُحَمَّدُ بْنُ حَاتِمٍ وَمَحْمُودُ بْنُ غَيْلاَنَ قَالاَ حَدَّثَنَا بِشْرُ بْنُ السَّرِيِّ حَدَّثَنَا سُفْيَانُ عَنْ سَعْدِ بْنِ إِبْرَاهِيمَ عَنْ عَبْدِ اللَّهِ بْنِ كَعْبِ بْنِ مَالِكٍ عَنْ أَبِيهِ

عَنِ النَّبِيِّ ﷺ غَيْرَ أَنَّ مَحْمُودًا قَالَ فِي رِوَايَتِهِ عَنْ بِشْرٍ وَمَثَلُ الْكَافِرِ كَمَثَلِ الأَرْزَةِ وَأَمَّا ابْنُ حَاتِمٍ فَقَالَ مَثَلُ الْمُنَافِقِ كَمَا قَالَ زُهَيْرٌ