503 صحيح حديث جَابِرِ بْنِ عَبْدِ اللهِ قَالَ: قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ ، وَهُوَ يَخْطُبُ: إِذَا جَاءَ أَحَدُكُمْ وَالإِمَامُ يَخْطُبُ أَوْ قَدْ خَرَجَ فَلْيُصَلِّ رَكْعَتَيْنِ
Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) narrated that the Messenger of Allah (peace and blessings be upon him) said while delivering the Friday sermon: Whoever comes (to the mosque) and the Imam is delivering the sermon or has come out for the sermon, then he should perform two rak'ahs of prayer (Tahiyyat al-Masjid).