Jabir bin Abdullah reported,

The Messenger of Allah ﷺ said while delivering a sermon, "When one of you arrives while the imam is giving the sermon, or has already come out, let him pray two rakahs."

Bukhari 1166

Sahih

حدثنا آدم، قال أخبرنا شعبة، أخبرنا عمرو بن دينار، قال سمعت

جابر بن عبد الله رضى الله عنهما قال

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

البخاري 1166صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tahajjud
Chapter
Voluntary prayers, two by two
Numbering
Darussalam 1166
Bukhari 1166