Hasan Arni reported,

The matter of what interrupts the prayer was mentioned in the presence of Ibn Abbas, and the people listed the dog, the donkey, and the woman.He said, "What do you say about the young goat? The Messenger of Allah ﷺ was praying one day when a young goat went to pass in front of him, and the Messenger of Allah ﷺ hurried ahead of it toward the qiblah."

Ibn Majah 953

Daif

حدثنا أحمد بن عبدة أنبأنا حماد بن زيد حدثنا يحيى أبو المعلى

عن الحسن العرني قال

ذكر عند ابن عباس ما يقطع الصلاة فذكروا الكلب والحمار والمرأة فقال ما تقولون في الجدي إن رسول الله ﷺ كان يصلي يوما فذهب جدي يمر بين يديه فبادره رسول الله ﷺ القبلة

ابن ماجه 953ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Ward off what you are able to
Numbering
Darussalam 953
Ibn Majah 953