Sahih Bukhari – Hadith No : 1683

Narrated `Abdullah bin Mas`ud: I offered (only a) two rak`at prayer with the Prophet (at Mina), and similarly with Abu Bakr and with `Umar, and then you d offered in opinions. Wish that I would be lucky enough to have two of the four rak`at accepted (by Allah).

Hadith In Arabic Text :

حدثنا قبيصة بن عقبة، حدثنا سفيان، عن الأعمش، عن إبراهيم، عن عبد الرحمن بن يزيد، عن عبد الله رضى الله عنه قال صليت مع النبي صلى الله عليه وسلم ركعتين، ومع أبي بكر رضى الله عنه ركعتين ومع عمر رضى الله عنه ركعتين، ثم تفرقت بكم الطرق، فيا ليت حظي من أربع ركعتان متقبلتان‏.‏

Chapter : Hajj (Pilgrimage) – كتاب الحج