كتاب الجمعة
7  
The Book of Prayer - Friday
(14)
Chapter: Greeting (prayers upon entering the masjid) while the Imam is preaching
(14)
باب التَّحِيَّةِ وَالإِمَامُ يَخْطُبُ ‏
Sahih Muslim 875 b

This hadith is narrated by Jabir through another chain of transmitters but Hammad (one of the narrators) made no mention of the two rak'ahs.

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَيَعْقُوبُ الدَّوْرَقِيُّ، عَنِ ابْنِ عُلَيَّةَ، عَنْ أَيُّوبَ، عَنْ عَمْرٍو، عَنْ جَابِرٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم كَمَا قَالَ حَمَّادٌ وَلَمْ يَذْكُرِ الرَّكْعَتَيْنِ ‏.‏
Reference : Sahih Muslim 875b
In-book reference : Book 7, Hadith 69
USC-MSA web (English) reference : Book 4, Hadith 1898
  (deprecated numbering scheme)