Abdullah bin Umar reported,

When he was in Mecca and prayed the Friday prayer, he would step forward and pray two rakats, then step forward again and pray four. When he was in Medina, he would pray the Friday prayer, then return to his house and pray two rakats, without praying in the mosque. He was asked about this, and he said, "The Messenger of Allah ﷺ used to do this."

Abu Dawud 1130

Sahih

حدثنا محمد بن عبد العزيز بن أبي رزمة المروزي أخبرنا الفضل بن موسى عن عبد الحميد بن جعفر عن يزيد بن أبي حبيب عن عطاء

عن ابن عمر قال

كان إذا كان بمكة فصلى الجمعة تقدم فصلى ركعتين ثم تقدم فصلى أربعا وإذا كان بالمدينة صلى الجمعة ثم رجع إلى بيته فصلى ركعتين ولم يصل في المسجد فقيل له فقال كان رسول الله ﷺ يفعل ذلك

أبو داود 1130صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Prayer after Friday
Numbering
Darussalam 1130
Abu Dawud 1130