It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) saw a man taking a sacrificial camel on foot, so he said: "Ride on it." The man said, "O Messenger of Allah! This is a sacrificial animal." The Prophet (peace and blessings be upon him) again said: "Ride on it." (When he still did not do so,) the second or third time he said: "Woe to you, ride on it."
Hadith Referenceالسنن المأثورة / باب ما جاء في فدية الأذى / 478
Hadith Takhrijصحیح بخاری، الحج، باب رکوب البدن، رقم: 1689، صحیح مسلم، الحج، باب جواز رکوب البدنۃ ..... الخ، رقم: 1322۔