Jabir bin Abdullah reported,

A man entered the mosque while the Messenger of Allah ﷺ was delivering the Friday sermon.The Prophet ﷺ asked him, "Have you prayed?"The man replied, "No."The Prophet ﷺ said, "Stand and pray two rakahs."In another narration, the Prophet ﷺ said, "When one of you comes on Friday and the imam has already come out, let him pray two rakahs."In yet another narration, Jabir reported, "Sulayk al-Ghatafani came on Friday while the Messenger of Allah ﷺ was seated on the pulpit. Sulayk sat down before praying."The Prophet ﷺ asked him, "Did you pray two rakahs?"He replied, "No."The Prophet ﷺ said, "Stand and pray them."In another narration, "Sulayk, stand and pray two rakahs, and make them brief."Then the Prophet ﷺ said, "When one of you comes on Friday while the imam is delivering the sermon, let him pray two rakahs and make them brief."

Azami 3345

Sahih

عن جابر، قال

دخل رجل المسجد ورسول الله ﷺ يخطب يوم الجمعة فقال: صليت؟ قال: لا. قال: قم فصل ركعتين. وفي رواية: أن النبي ﷺ قال: إذا جاء أحدكم يوم الجمعة وقد خرج الإمام فليصل ركعتين. وفي رواية أخرى: عن جابر أنه قال: جاء سليك الغطفاني يوم الجمعة ورسول الله ﷺ قاعد على المنبر، فقعد سليك قبل أن يصلي، فقال له النبي ﷺ: أركع ركعتين؟ قال: لا. قال: قم فاركعهما. وفي رواية: يا سليك! قم فاركع ركعتين وتجوز فيهما. ثم قال ﷺ: إذا جاء أحدكم يوم الجمعة والإمام يخطب فليركع ركعتين، وليتجوز فيهما.

الأعظمي 3345صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Friday
Chapter
Rulings on Friday prayer
Section
Greeting the masjid for one who enters while the imam is giving the sermon
Numbering
Jami al-Kamil 3345 (2nd edition)
Azami 3345