Abu Saeed Khudri reported,

He entered on Friday while Marwan was delivering the sermon, so he stood up to pray. The guards came to make him sit down, but he refused until he had finished his prayer. When he had completed it, we came to him and said, "May Allah have mercy on you, they nearly assaulted you."He replied, "I would never abandon these two units of prayer after something I witnessed from the Messenger of Allah ﷺ."Then he mentioned that a man came on a Friday in shabby appearance while the Prophet ﷺ was delivering the Friday sermon, and the Prophet ﷺ instructed him to pray two units while he was still delivering the sermon.Ibn Abu Umar said, Sufyan bin Uyayna used to pray two units when he arrived while the imam was giving the sermon, and he would instruct others to do the same, and Abu Abdul-Rahman al-Muqri held the same view.

Tirmidhi 511

Hasan

حدثنا محمد بن أبي عمر حدثنا سفيان بن عيينة عن محمد بن عجلان عن عياض بن عبد الله بن أبي سرح أن

أبا سعيد الخدري

دخل يوم الجمعة ومروان يخطب فقام يصلي فجاء الحرس ليجلسوه فأبى حتى صلى فلما انصرف أتيناه فقلنا رحمك الله إن كادوا ليقعوا بك فقال ما كنت لأتركهما بعد شيء رأيته من رسول الله ﷺ ثم ذكر أن رجلا جاء يوم الجمعة في هيئة بذة والنبي ﷺ يخطب يوم الجمعة فأمره فصلى ركعتين والنبي ﷺ يخطب قال ابن أبي عمر كان سفيان بن عيينة يصلي ركعتين إذا جاء والإمام يخطب وكان يأمر به وكان أبو عبد الرحمن المقرئ يراه

الترمذي 511حسن
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Friday
Chapter
Two rakahs when a man arrives while the imam is delivering the sermon
Numbering
Darussalam 511
Tirmidhi 511