Nafi' narrates from Ibn Umar (may Allah be pleased with them both): "When you catch one rak'ah of the Friday prayer, add another to it; if you find the people in the tashahhud, pray four rak'ahs."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجمعة / 5738