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.
tabarani:12704ʿAbdullāh b. Aḥmad b. Ḥanbal > Muḥammad b. Abū Bakr al-Muqaddamī > Ḥammād b. Zayd > Abū al-Muʿallá al-ʿAṭṭār > al-Ḥasan al-ʿUranī > Ibn ʿAbbās > Dhukir ʿIndah Mā Yaqṭaʿ al-Ṣalāh

[Machine] What do you say about the grandfather? The Messenger of Allah ﷺ was praying and his grandfather passed by in front of him, so the Messenger of Allah ﷺ hastened to face the Qibla. The Messenger of Allah ﷺ prayed one day and there was a donkey belonging to Al-Fadl ibn Abbas grazing in front of him.  

الطبراني:١٢٧٠٤حَدَّثَنَا عَبْدُ اللهِ بْنُ أَحْمَدَ بْنِ حَنْبَلٍ حَدَّثَنِي مُحَمَّدُ بْنُ أَبِي بَكْرٍ الْمُقَدَّمِيُّ ثنا حَمَّادُ بْنُ زَيْدٍ عَنْ أَبِي الْمُعَلَّى الْعَطَّارِ عَنِ الْحَسَنِ الْعُرَنِيِّ عَنِ ابْنِ عَبَّاسٍ أَنَّهُ ذُكِرَ عِنْدَهُ مَا يَقْطَعُ الصَّلَاةَ فَقَالَ

مَا تَقُولُونَ فِي الْجَدْيِ؟ فَإِنَّ رَسُولَ اللهِ ﷺ «كَانَ يُصَلِّي فَمَرَّ جَدْيٌ بَيْنَ يَدَيْهِ فَبَادَرَ رَسُولُ اللهِ ﷺ الْقِبْلَةَ وَلَقَدْ صَلَّى رَسُولُ اللهِ ﷺ يَوْمًا وَإِنَّ حِمَارَةً لِلْفَضْلِ بْنِ عَبَّاسٍ تَرْعَى بَيْنَ يَدَيْهِ»