Abdullah bin Masud reported,

I prayed two rakats with the Prophet ﷺ, two rakats with Abu Bakr رضي الله عنه, and two rakats with Umar رضي الله عنه. Then the paths divided you. How I wish that out of these four, two rakats would be accepted from me.

Bukhari 1657

Sahih

حدثنا قبيصة بن عقبة حدثنا سفيان عن الأعمش عن إبراهيم عن عبد الرحمن بن يزيد

عن عبد الله رضي الله عنه قال

صليت مع النبي ﷺ ركعتين ومع أبي بكر رضي الله عنه ركعتين ومع عمر رضي الله عنه ركعتين ثم تفرقت بكم الطرق فيا ليت حظي من أربع ركعتان متقبلتان

البخاري 1657صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hajj
Chapter
Prayer at Mina
Numbering
Darussalam 1657
Bukhari 1657