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.
abudawud:708Musaddad > ʿĪsá b. Yūnus > Hishām b. al-Ghāz > ʿAmr b. Shuʿayb from his father from his grandfather

We came down from the mountain pass of Adhaakhir in the company of the Messenger of Allah ﷺ. The time of prayer came and he prayed facing a direction of prayer, and we were (standing) behind him. Then a kid came and passed in front of him. He kept on stopping it until he brought his stomach near the wall (to detain it), and at last it passed behind him, or as Musaddad said.  

أبو داود:٧٠٨حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا عِيسَى بْنُ يُونُسَ حَدَّثَنَا هِشَامُ بْنُ الْغَازِ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

هَبَطْنَا مَعَ رَسُولِ اللَّهِ ﷺ مِنْ ثَنِيَّةِ أَذَاخِرَ فَحَضَرَتِ الصَّلاَةُ يَعْنِي فَصَلَّى إِلَى جِدَارٍ فَاتَّخَذَهُ قِبْلَةً وَنَحْنُ خَلْفَهُ فَجَاءَتْ بَهْمَةٌ تَمُرُّ بَيْنَ يَدَيْهِ فَمَا زَالَ يُدَارِئُهَا حَتَّى لَصِقَ بَطْنُهُ بِالْجِدَارِ وَمَرَّتْ مِنْ وَرَائِهِ أَوْ كَمَا قَالَ مُسَدَّدٌ  


See similar narrations below:

Collected by Aḥmad, Bayhaqī
ahmad:6852

[Machine] "When the Messenger of Allah ﷺ descended with them from the valley of Thaniyyat Ad-Dakhira, he prayed with them at a wall that he took as a Qibla. A herd of camels passed by between the Prophet's hands, so he kept avoiding them and getting closer to the wall, until I saw the belly of the Messenger of Allah ﷺ sticking to the wall and they passed behind him."  

أحمد:٦٨٥٢م وَذَكَرَ

أَنَّهُ حِينَ هَبَطَ بِهِمْ مِنْ ثَنِيَّةِ أَذَاخِرَ صَلَّى بِهِمْ رَسُولُ اللهِ ﷺإِلَى جَدْرٍ اتَّخَذَهُ قِبْلَةً فَأَقْبَلَتْ بَهْمَةٌ تَمُرُّ بَيْنَ يَدَيِ النَّبِيِّ ﷺ فَمَا زَالَ يُدَارِئُهَا وَيَدْنُو مِنَ الْجَدْرِ حَتَّى نَظَرْتُ إِلَى بَطْنِ رَسُولِ اللهِ ﷺ قَدْ لَصِقَ بِالْجِدَارِ وَمَرَّتْ مِنْ خَلْفِهِ  

bayhaqi:3451Abū al-Ḥasan ʿAlī b. Muḥammad al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb > Musaddad > ʿĪsá b. Yūnus > Hishām b. al-Ghāz > ʿAmr b. Shuʿayb from his father from his grandfather

We came down from the mountain pass of Adhaakhir in the company of the Messenger of Allah ﷺ. The time of prayer came and he prayed facing a direction of prayer, and we were (standing) behind him. Then a kid came and passed in front of him. He kept on stopping it until he brought his stomach near the wall (to detain it), and at last it passed behind him, or as Musaddad said. (Using translation from Abū Dāʾūd 708)   

البيهقي:٣٤٥١أَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدٍ الْمُقْرِئُ أنبأ الْحَسَنُ بْنُ مُحَمَّدِ بْنِ إِسْحَاقَ ثنا يُوسُفُ بْنُ يَعْقُوبَ ثنا مُسَدَّدٌ ثنا عِيسَى بْنُ يُونُسَ ثنا هِشَامُ بْنُ الْغَازِ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

هَبَطْنَا مَعَ رَسُولِ اللهِ ﷺ مِنْ ثَنِيَّةٍ أَذَاخِرَ فَحَضَرَتِ الصَّلَاةُ فَصَلَّى إِلَى جِدَارٍ فَاتَّخَذَهُ قِبْلَةً وَنَحْنُ خَلْفَهُ فَجَاءَتْ بَهْمَةٌ لَتَمُرَّ بَيْنَ يَدَيْهِ فَمَا زَالَ يُدَارِيهَا حَتَّى لَصَقَ بَطْنُهُ بِالْجِدَارِ وَمَرَّتْ مِنْ وَرَائِهِ