Al-Ilmam bi-Ahadith al-Ahkam 381
وَعَن جَابر بن عبد الله رَضِيَ اللَّهُ عَنْهما، قَالَ: " بَيْنَمَا النَّبِي ﷺ يخْطب يَوْم الْجُمُعَة، إِذْ جَاءَ رجل، فَقَالَ لَهُ النَّبِي ﷺ : أصليت يَا فلَان؟ قَالَ: لَا، قَالَ: قُم فاركع ". لفظ مُسلم، وَهُوَ مُتَّفق عَلَيْهِ. وَفِي رِوَايَة لمُسلم: " يَا سُليك قُم فاركع رَكْعَتَيْنِ، وَتجوز فيهمَا، ثمَّ قَالَ: إِذا جَاءَ أحدكُم (يَوْم) الْجُمُعَة - وَالْإِمَام يخْطب - فليركع رَكْعَتَيْنِ، وليتجوز فيهمَا ".
And from Jabir ibn ʿAbdullah, may Allah be pleased with them both, who said: "While the Prophet ﷺ was giving the khutbah on Friday, a man came, and the Prophet ﷺ said to him: 'Have you prayed, so-and-so?' He said: 'No.' He said: 'Get up and pray.'" The wording is Muslim's, and it is agreed upon. And in a narration of Muslim: "O Sulayk, get up and pray two rakʿahs and make them brief." Then he said: "When one of you comes (on) Friday while the imam is giving the khutbah, let him pray two rakʿahs and make them brief."