Translation
(25) Hajj (Pilgrimage)
كتاب الحج
(84) Chapter: As-Salat at Mina
(84) باب الصَّلاَةِ بِمِنًى
Sahih al-Bukhari 1657 

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).

حَدَّثَنَا قَبِيصَةُ بْنُ عُقْبَةَ، حَدَّثَنَا سُفْيَانُ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ يَزِيدَ، عَنْ عَبْدِ اللَّهِ ـ رضى الله عنه ـ قَالَ صَلَّيْتُ مَعَ النَّبِيِّ صلى الله عليه وسلم رَكْعَتَيْنِ، وَمَعَ أَبِي بَكْرٍ ـ رضى الله عنه ـ رَكْعَتَيْنِ وَمَعَ عُمَرَ ـ رضى الله عنه ـ رَكْعَتَيْنِ، ثُمَّ تَفَرَّقَتْ بِكُمُ الطُّرُقُ، فَيَا لَيْتَ حَظِّي مِنْ أَرْبَعٍ رَكْعَتَانِ مُتَقَبَّلَتَانِ‏.‏
Reference : Sahih al-Bukhari 1657
In-book reference : Book 25, Hadith 138
USC-MSA web (English) reference : Vol. 2, Book 26, Hadith 719
  (deprecated numbering scheme)