Hadithcore
Sahih Muslim, 2810 c
sahih

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.

وَحَدَّثَنِيهِ مُحَمَّدُ بْنُ حَاتِمٍ، وَمَحْمُودُ بْنُ غَيْلاَنَ، قَالاَ حَدَّثَنَا بِشْرُ بْنُ السَّرِيِّ، حَدَّثَنَا سُفْيَانُ، عَنْ سَعْدِ بْنِ إِبْرَاهِيمَ، عَنْ عَبْدِ اللَّهِ بْنِ كَعْبِ بْنِ مَالِكٍ، عَنْ أَبِيهِ، عَنِ النَّبِيِّ صلى الله عليه وسلم غَيْرَ أَنَّ مَحْمُودًا قَالَ فِي رِوَايَتِهِ عَنْ بِشْرٍ ‏"‏ وَمَثَلُ الْكَافِرِ كَمَثَلِ الأَرْزَةِ ‏"‏ ‏.‏ وَأَمَّا ابْنُ حَاتِمٍ فَقَالَ ‏"‏ مَثَلُ الْمُنَافِقِ ‏"‏ ‏.‏ كَمَا قَالَ زُهَيْرٌ ‏.‏

References2 variants
In-Book Reference
Book 52, Hadith 50
USC-MSA web (English) reference
Book 39, Hadith 6745 (deprecated numbering scheme)