Abdullah bin Abbas reported,

I came riding on a donkey, having nearly reached the age of puberty at the time, while the Messenger of Allah ﷺ was leading the people in prayer at Mina. I passed in front of part of the row, dismounted, let the donkey graze freely, and joined the row. No one objected to what I had done.

Azami 2538

Sahih

عن ابن عباس قال

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

الأعظمي 2538صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Sutrah
Section
Imam's sutrah is the sutrah for those behind him
Numbering
Jami al-Kamil 2538 (2nd edition)
Azami 2538