أَخْبَرَنَا الشَّافِعِيُّ رَضِيَ اللَّهُ عَنْهُ، قَالَ: أَخْبَرَنَا سُفْيَانُ، عَنْ عَمْرِو بْنِ دِينَارٍ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ رَضِيَ اللَّهُ عَنْهُ قَالَ: دَخَلَ رَجُلٌ يَوْمَ الْجُمُعَةِ الْمَسْجِدَ وَالنَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَخْطُبُ، فَقَالَ لَهُ: "أَصَلَّيْتَ؟" قَالَ: لَا، قَالَ: "فَصَلِّ رَكْعَتَيْنِ" .
It is narrated from Jabir bin Abdullah (may Allah be pleased with him) who states that the Prophet (ﷺ) was delivering the sermon on Friday when a man entered the mosque. The Prophet (ﷺ) asked him: "Have you prayed?" He replied: "No." The Prophet (ﷺ) said: "Pray two rak‘ahs (Tahiyyat al-Masjid)."