Abdullah bin Umar reported,

The Prophet ﷺ prayed at Mina the prayer of a traveler, as did Abu Bakr and Umar, and Uthman for eight years, or he said six years.Hafs said, Ibn Umar used to pray two rakahs at Mina and then go to his bed.I said, "Uncle, what if you prayed two more rakahs after it?"He replied, "If I did that, I would be completing the prayer in full."

Azami 5078

Sahih

عن ابن عمر، قال

صلى النبي ﷺ بمنى صلاة المسافر وأبو بكر وعمر وعثمان ثماني سنين أو قال ست سنين. قال حفص: وكان ابن عمر يصلي بمنى ركعتين، ثم يأتي فراشه، فقلت: أي عم لو صليت بعدها ركعتين. قال: لو فعلت لأتممت الصلاة.

الأعظمي 5078صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Shortening the prayer at Mina
Numbering
Jami al-Kamil 5078 (2nd edition)
Azami 5078