Mishkat al-Masabih

Jabir reported God’s Messenger as saying in the course of a sermon, “When one of you comes on Friday while the imam is preaching, he should pray two rak'as and make them short.” Muslim transmitted it.

وَعَنْ جَابِرٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم وَهُوَ يخْطب: «إِذَا جَاءَ أَحَدُكُمْ يَوْمَ الْجُمُعَةِ وَالْإِمَامُ يَخْطُبُ فليركع رَكْعَتَيْنِ وليتجوز فيهمَا» . رَوَاهُ مُسلم