كتاب فضائل الصحابة رضى الله تعالى عنهم
44  
The Book of the Merits of the Companions
(52)
Chapter: The Virtues Of the Sahabah, Then Those Who Come After Them, Then Those Who Come After Them
(52)
باب فَضْلِ الصَّحَابَةِ ثُمَّ الَّذِينَ يَلُونَهُمْ ثُمَّ الَّذِينَ يَلُونَهُمْ ‏‏
Sahih Muslim 2535 b

This hadith has been reported on the authority of Shu'ba with the same chain of transmitters (and the words are):

I do not know whether he made a mention of two generations after his generation or of the third one too. Shababa said: I heard this from Zahdam b. Mudarrib as he came to me riding a horse for some need and he narrated it to me that he had heard it from 'Imran b. Husain, and in the hadith transmitted on the authority of Yahya and Shababa (the words are): They take an oath but they do not fulfil it, and in the hadith transmitted on the authority of Bahz there the word is Yafun as transmitted on the authority of Ibn Ja'far.
حَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، ح وَحَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ بِشْرٍ، الْعَبْدِيُّ حَدَّثَنَا بَهْزٌ، ح وَحَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا شَبَابَةُ، كُلُّهُمْ عَنْ شُعْبَةَ، بِهَذَا الإِسْنَادِ ‏.‏ وَفِي حَدِيثِهِمْ قَالَ لاَ أَدْرِي أَذَكَرَ بَعْدَ قَرْنِهِ قَرْنَيْنِ أَوْ ثَلاَثَةً ‏.‏ وَفِي حَدِيثِ شَبَابَةَ قَالَ سَمِعْتُ زَهْدَمَ بْنَ مُضَرِّبٍ وَجَاءَنِي فِي حَاجَةٍ عَلَى فَرَسٍ فَحَدَّثَنِي أَنَّهُ سَمِعَ عِمْرَانَ بْنَ حُصَيْنٍ ‏.‏ وَفِي حَدِيثِ يَحْيَى وَشَبَابَةَ ‏"‏ يَنْذُرُونَ وَلاَ يَفُونَ ‏"‏ ‏.‏ وَفِي حَدِيثِ بَهْزٍ ‏"‏ يُوفُونَ ‏"‏ ‏.‏ كَمَا قَالَ ابْنُ جَعْفَرٍ ‏.‏
Reference : Sahih Muslim 2535b
In-book reference : Book 44, Hadith 305
USC-MSA web (English) reference : Book 31, Hadith 6157
  (deprecated numbering scheme)