It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that I saw the Messenger of Allah (peace and blessings be upon him) performing prayer while traveling on a donkey, and he was going to Khaybar.
Hadith Referenceالسنن المأثورة / باب ما جاء في الصلاة على الراحلة / 79
Hadith Takhrijصحیح مسلم، المساجد ومواضع الصلاة، باب جواز صلاة النافلة علی الدابة في السفر، رقم : 700۔