Sahih al-Bukhari 1170
Narrated Jabir bin 'Abdullah :
While delivering a sermon, Allah's Apostle ﷺ said, "If anyone of you comes while the Imam is delivering the sermon or has come out for it, he should offer a two Rakat prayer."
حَدَّثَنَا آدَمُ، قَالَ أَخْبَرَنَا شُعْبَةُ، أَخْبَرَنَا عَمْرُو بْنُ دِينَارٍ، قَالَ سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ قَالَ قَالَ رَسُولُ اللَّهِ ﷺ وَهُوَ يَخْطُبُ
" إِذَا جَاءَ أَحَدُكُمْ وَالإِمَامُ يَخْطُبُ ـ أَوْ قَدْ خَرَجَ ـ فَلْيُصَلِّ رَكْعَتَيْنِ ".
Classification
Sahih (Authentic)
References
Sahih al-Bukhari 1170
Sahih al-Bukhari Vol. 2, Book of Night Prayer (Tahajjud), Hadith 267