I prayed two rakahs with the Prophet ﷺ at Mina, two rakahs with Abu Bakr , and two rakahs with Umar
.
أخبرنا عبيد الله بن سعيد قال أنبأنا يحيى عن عبيد الله عن نافع
صليت مع النبي ﷺ بمنى ركعتين ومع أبي بكر رضي الله عنه ركعتين ومع عمر رضي الله عنه ركعتين
Muslim narrated it in the Book of the Prayer of Travelers, chapter on Shortening the Prayer at Mina, hadith no. 17/94b, from Ubaydullah bin Saeed. Bukhari narrated it in the Book of Shortening the Prayer, chapter on the Prayer at Mina, hadith no. 1082, through the hadith of Yahya Qattan, with the same wording. It is also found in Sunan al-Kubra, hadith no. 1908.