It is narrated from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) that he said: "Whoever catches one rak'ah (with the imam) has caught the Friday prayer, and whoever does not catch even one rak'ah should pray four."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9512