Ata (may Allah have mercy on him) narrates from Sayyiduna Ibn Umar (may Allah be pleased with him) that when he was in Makkah, he would pray the Friday prayer, then move forward and pray two rak'ahs, then move forward again and pray four rak'ahs. When he was in Madinah, he would pray the Friday prayer, then return to his house and pray two rak'ahs, and he would not pray in the mosque. He was asked about this and said: "the Prophet (peace and blessings be upon him) used to do so."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجمعة / 5946