كتاب الحج
15  
The Book of Pilgrimage
(65)
Chapter: It is permissible to ride the sacrificial animal if necessary
(65)
باب جَوَازِ رُكُوبِ الْبَدَنَةِ الْمُهْدَاةِ لِمَنِ احْتَاجَ إِلَيْهَا ‏‏
Sahih Muslim 1323 c

Anas (Allah be pleased with him) reported:

There happened to pass (a person) with a sacrificial camel by Allah's Apostle (ﷺ) and the rest of the hadith is the same.
وَحَدَّثَنَاهُ أَبُو كُرَيْبٍ، حَدَّثَنَا ابْنُ بِشْرٍ، عَنْ مِسْعَرٍ، حَدَّثَنِي بُكَيْرُ بْنُ الأَخْنَسِ، قَالَ سَمِعْتُ أَنَسًا، يَقُولُ مُرَّ عَلَى النَّبِيِّ صلى الله عليه وسلم بِبَدَنَةٍ ‏.‏ فَذَكَرَ مِثْلَهُ ‏.‏
Reference : Sahih Muslim 1323c
In-book reference : Book 15, Hadith 417
USC-MSA web (English) reference : Book 7, Hadith 3051
  (deprecated numbering scheme)