عَنْ جَابِرَ بْنَ عَبْدِ اللَّهِ رضى الله عنهما قَالَ قَالَ رَسُولُ اللّٰہ صلّى الله عليه وسلّم وَهُوَ يَخْطُبُ: إِذَا جَاءَ أَحَدُكُمْ وَالإِمَامُ يَخْطُبُ ـ أَوْ قَدْ خَرَجَ ـ فَلْيُصَلِّ رَكْعَتَيْنِ
Hazrat Jabir bin Abdullahra narrated that, “Allah’s Messengersa, while delivering the sermon, said: ‘If any of you arrives while the imam is delivering the sermon – or has come out for it – let him offer two rak‘ahs.”
(Sahih al-Bukhari, Kitab at-tahajjud, Bab ma ja’a fi t-tatawwu‘i mathna mathna, Hadith 1166)

