حَدَّثَنَا الْمِقْدَامُ بْنُ دَاوُدَ، ثنا أَسَدُ بْنُ مُوسَى، ثنا شُعْبَةُ، عَنْ عَمْرِو بْنِ دِينَارٍ، قَالَ: سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللهِ قَالَ: قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ وَهُوَ يَخْطُبُ: «إِذَا كَانَ أَحَدُكُمْ يَوْمَ الْجُمُعَةِ وَالْإِمَامُ يَخْطُبُ، أَوْ قَدْ خَرَجَ فَلْيُصَلِّ رَكْعَتَيْنِ»
It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said while delivering the sermon: "When one of you comes on Friday while the imam is delivering the sermon, or has already come out, let him pray two rak'ahs."