From another chain, it is narrated from Jabir (may Allah be pleased with him) from the Prophet (peace be upon him) in a similar manner. In this hadith of Jabir, there is an addition that the (person who entered) was Sulaik Al-Ghatafani (may Allah be pleased with him).
Hadith Referenceمسند الإمام الشافعي / كتاب الجمعة / 432
Hadith Takhrijاخرجہ مسلم، الجمعۃ، باب التحیہ والإمام یخطب (875)۔