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

Jabir b. 'Abdullah (Allah be pleased with them) reported that he was asked about riding on a sacrificial animal, and he said:

I heard Allah's Messenger (ﷺ) as saying: Ride on it gently, when you have need for it, until you find (another) mount.
وَحَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنِ ابْنِ جُرَيْجٍ، أَخْبَرَنِي أَبُو الزُّبَيْرِ، قَالَ سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللَّهِ، سُئِلَ عَنْ رُكُوبِ الْهَدْىِ، فَقَالَ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ ‏ "‏ ارْكَبْهَا بِالْمَعْرُوفِ إِذَا أُلْجِئْتَ إِلَيْهَا حَتَّى تَجِدَ ظَهْرًا ‏"‏ ‏.‏
Reference : Sahih Muslim 1324a
In-book reference : Book 15, Hadith 418
USC-MSA web (English) reference : Book 7, Hadith 3052
  (deprecated numbering scheme)