Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
hakim:934Abū Bakr b. Isḥāq al-Faqīh > ʿAlī b. ʿAbd al-ʿAzīz > Mūsá b. Ismāʿīl > Jarīr b. Ḥāzim > Yaʿlá b. Ḥakīm And al-Zzubayr b. al-Khirrīt > ʿIkrimah > Ibn ʿAbbās

[Machine] The Prophet ﷺ used to pray, and a sheep passed in front of him, so he moved it towards qibla until his belly stuck to qibla.  

الحاكم:٩٣٤حَدَّثَنَا أَبُو بَكْرِ بْنُ إِسْحَاقَ الْفَقِيهُ أَنْبَأَ عَلِيُّ بْنُ عَبْدِ الْعَزِيزِ ثنا مُوسَى بْنُ إِسْمَاعِيلَ ثنا جَرِيرُ بْنُ حَازِمٍ عَنْ يَعْلَى بْنِ حَكِيمٍ وَالزُّبَيْرِ بْنِ الْخِرِّيتِ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ

أَنَّ النَّبِيَّ ﷺ كَانَ «يُصَلِّي فَمَرَّتْ شَاةٌ بَيْنَ يَدَيْهِ فَسَاعَاهَا إِلَى الْقِبْلَةِ حَتَّى أَلْزَقَ بَطْنَهُ بِالْقِبْلَةِ»  

«هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الْبُخَارِيِّ وَلَمْ يُخَرِّجَاهُ» على شرط البخاري

See similar narrations below:

Collected by Ibn Ḥibbān

ذِكْرُ الْإِبَاحَةِ لِلْمَرْءِ أَنْ يَمْنَعَ الشَّاةَ إِذَا أَرَادَتِ الْمُرُورَ بَيْنَ يَدَيْهِ وَهُوَ يُصَلِّي

ibnhibban:2371Muḥammad b. Isḥāq b. Khuzaymah > al-Faḍl b. Yaʿqūb al-Rukhāmī > al-Haytham b. Jamīl > Jarīr b. Ḥāzim > Yaʿlá b. Ḥakīm And al-Zzubayr b. Khirrīt > ʿIkrimah > Ibn ʿAbbās

[Machine] That the Prophet ﷺ was praying when a sheep passed in front of him, so he moved it towards the direction of the qibla until his belly touched the qibla.  

ابن حبّان:٢٣٧١أَخْبَرَنَا مُحَمَّدُ بْنُ إِسْحَاقَ بْنِ خُزَيْمَةَ قَالَ حَدَّثَنَا الْفَضْلُ بْنُ يَعْقُوبَ الرُّخَامِيُّ قَالَ حَدَّثَنَا الْهَيْثَمُ بْنُ جَمِيلٍ قَالَ حَدَّثَنَا جَرِيرُ بْنُ حَازِمٍ عَنْ يَعْلَى بْنِ حَكِيمٍ وَالزُّبَيْرِ بْنِ خِرِّيتٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ

«أَنَّ النَّبِيَّ ﷺ كَانَ يُصَلِّي فَمَرَّتْ شَاةٌ بَيْنَ يَدَيْهِ فَسَاعَاهَا إِلَى الْقِبْلَةِ حَتَّى أَلْصَقَ بَطْنَهُ بِالْقِبْلَةِ»