It is narrated from Sayyiduna Abdullah (may Allah be pleased with him) that he said: "Whoever catches one rak'ah of the Friday prayer should add another one to it, and whoever misses both rak'ahs should pray four."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9511