Salim narrates from his father that the Messenger of Allah (ﷺ) prayed two rak‘ahs in Mina, and afterwards Abu Bakr and ‘Umar (may Allah be pleased with them both) did the same.
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 984
Hadith Takhrijأخرجہ البخاری، الحج، باب الصلاۃ بمنی (1655) ومسلم صلاۃ المسافرین، باب قصر الصلاۃ بمنی (694)۔