Translation
(25) Hajj (Pilgrimage)
كتاب الحج
(103) Chapter: The riding over the Budn
(103) باب رُكُوبِ الْبُدْنِ
Sahih al-Bukhari 1689 

Narrated Abu Huraira':

Allah's Messenger (ﷺ) (p.b.u.h) saw a man driving his Badana (sacrificial camel). He said, "Ride on it." The man said, "It is a Badana." The Prophet (ﷺ) said, "Ride on it." He (the man) said, "It is a Badana." The Prophet said, "Ride on it." And on the second or the third time he (the Prophet (ﷺ) ) added, "Woe to you."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم رَأَى رَجُلاً يَسُوقُ بَدَنَةً فَقَالَ ‏"‏ ارْكَبْهَا ‏"‏‏.‏ فَقَالَ إِنَّهَا بَدَنَةٌ‏.‏ فَقَالَ ‏"‏ ارْكَبْهَا ‏"‏‏.‏ قَالَ إِنَّهَا بَدَنَةٌ‏.‏ قَالَ ‏"‏ ارْكَبْهَا، وَيْلَكَ ‏"‏‏.‏ فِي الثَّالِثَةِ أَوْ فِي الثَّانِيَةِ‏.‏
Reference : Sahih al-Bukhari 1689
In-book reference : Book 25, Hadith 168
USC-MSA web (English) reference : Vol. 2, Book 26, Hadith 748
  (deprecated numbering scheme)