Muwatta Malik, Book 20, Hadith 140 (USC-MSA)

Yahya related to me from Malik from Abu'z Zinad from al-Araj from Abu Hurayra that the Messenger of Allah, may Allah bless him and grant him peace, saw a man driving forward a camel which he was going to sacrifice, and he told him to ride it. The man said, "Messenger of Allah, it is an animal that I am going to sacrifice," and he replied, "Ride it, woe on you," either the second or the third time.

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم رَأَى رَجُلاً يَسُوقُ بَدَنَةً فَقَالَ ‏"‏ ارْكَبْهَا ‏"‏ ‏.‏ فَقَالَ يَا رَسُولَ اللَّهِ إِنَّهَا بَدَنَةٌ ‏.‏ فَقَالَ ‏"‏ ارْكَبْهَا وَيْلَكَ ‏"‏ ‏.‏ فِي الثَّانِيَةِ أَوِ الثَّالِثَةِ ‏.‏

sunnah.com

also referenced under: Book 20, Hadith 843 (In-Book)