Abdullah bin Abbas reported,

I came riding on a female donkey, having nearly reached the age of puberty at that time. The Messenger of Allah ﷺ was leading the people in prayer at Mina, with no wall in front of him as a barrier. I passed in front of part of the row, then dismounted and let the donkey graze freely, and I joined the row. No one rebuked me for that.

Bukhari 861

Sahih

حدثنا عبد الله بن مسلمة عن مالك عن ابن شهاب عن عبيد الله بن عبد الله بن عتبة

عن ابن عباس رضي الله عنهما أنه قال

أقبلت راكبا على حمار أتان وأنا يومئذ قد ناهزت الاحتلام ورسول الله ﷺ يصلي بالناس بمنى إلى غير جدار فمررت بين يدي بعض الصف فنزلت وأرسلت الأتان ترتع ودخلت في الصف فلم ينكر ذلك علي أحد

البخاري 861صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Wudu of children, when ghusl and purification become obligatory for them, their attendance at congregational prayer, the two Eids, and funerals, and their rows
Numbering
Darussalam 861
Bukhari 861