Sayyiduna Sulayk (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "When a person comes while the imam is delivering the sermon, he should pray two short rak'ahs."
Ahmad and al-Tabarani in al-Mu'jam al-Kabir recorded it, and its narrators are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 3121
Hadith Gradingمحدثین:إسنادہ صحیح۔
Hadith Takhrij«مسند احمد بن حنبل مسند جابر بن عبد الله رضى الله عنه 14914 ، سنن الدارقطنى اول كتاب الجمعة باب فى الركعتين إذا جاء الرجل والإمام يخطب . 1401 ، أخرجه مسند أحمد برقم: 14759، وأخرجه المعجم الكبير للطبراني برقم: 6711»