حَدَّثَنَا أَحْمَدُ بْنُ عَبْدَةَ، أَنْبَأَنَا حَمَّادُ بْنُ زَيْدٍ، حَدَّثَنَا يَحْيَى أَبُو الْمُعَلَّى، عَنِ الْحَسَنِ الْعُرَنِيِّ، قَالَ ذُكِرَ عِنْدَ ابْنِ عَبَّاسٍ مَا يَقْطَعُ الصَّلاَةَ فَذَكَرُوا الْكَلْبَ وَالْحِمَارَ وَالْمَرْأَةَ فَقَالَ مَا تَقُولُونَ فِي الْجَدْىِ إِنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ كَانَ يُصَلِّي يَوْمًا فَذَهَبَ جَدْىٌ يَمُرُّ بَيْنَ يَدَيْهِ فَبَادَرَهُ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ الْقِبْلَةَ ‏.‏

It wasnarrated that Hasan Al-‘Urani said: ‘Mention was made in thepresence of Ibn ‘Abbas about what severs the prayer. They mentionedadog, a donkey and a woman. He said: ‘What do you say about kids(younggoats)? The Messenger of Allah (PBUH) was performing prayer oneday,when a kid came and wanted to pass in front of him. TheMessenger ofAllah (PBUH) preceded it toward the Qiblah. (to tightenthe space andprevent it from passing in front of him).’” Translation Not Available

Book Ref: Sunan Ibn Majah Book 5 Hadith 953
Web Ref:  Sunan Ibn Majah Vol 1 Book 5 Hadith 953