Abdul-Rahman bin Yazid reported,

Uthman led us in four rakahs of prayer at Mina. When this was mentioned to Abdullah bin Masud, he said, "To Allah we belong and to Him we shall return," then said, "I prayed with the Messenger of Allah ﷺ at Mina two rakahs, and I prayed with Abu Bakr at Mina two rakahs, and I prayed with Umar at Mina two rakahs. How I wish that my share of the four rakahs were two accepted ones."

Azami 2874

Sahih

عن عبد الرحمن بن يزيد يقول

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

الأعظمي 2874صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Witr prayer
Section
Shortening the prayer in Mina
Numbering
Jami al-Kamil 2874 (2nd edition)
Azami 2874