حَدَّثَنَا الْقَاضِي الْحُسَيْنُ بْنُ الْحُسَيْنِ بْنِ عَبْدِ الرَّحْمَنِ الأَنْطَاكِيُّ ، ثنا إِبْرَاهِيمُ بْنُ مُنْقِذٍ الْخَوْلانِيُّ ، نا إِدْرِيسُ بْنُ يَحْيَى أَبُو عَمْرٍو الْمَعْرُوفُ بِالْخَوْلانِيِّ ، عَنْ بَكْرِ بْنِ مُضَرَ ، عَنْ صَخْرِ بْنِ عَبْدِ اللَّهِ بْنِ حَرْمَلَةَ ، أَنَّهُ سَمِعَ عُمَرَ بْنَ عَبْدِ الْعَزِيزِ ، يَقُولُ : عَنْ أَنَسٍ ، أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَّى بِالنَّاسِ فَمَرَّ بَيْنَ أَيْدِيهِمْ حِمَارٌ ، فَقَالَ عَيَّاشُ بْنُ أَبِي رَبِيعَةَ : سُبْحَانَ اللَّهِ ، سُبْحَانَ اللَّهِ ، سُبْحَانَ اللَّهِ ، فَلَمَّا سَلَّمَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : " مَنِ الْمُسَبِّحُ آنِفًا سُبْحَانَ اللَّهِ ؟ " ، قَالَ : أَنَا يَا رَسُولَ اللَّهِ ، إِنِّي سَمِعْتُ أَنَّ الْحِمَارَ يَقْطَعُ الصَّلاةَ ، قَالَ : " لا يَقْطَعُ الصَّلاةَ شَيْءٌ " .
Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates: Once the Prophet Muhammad (peace and blessings be upon him) was leading the people in prayer, and some donkeys passed in front of him. Among those praying behind the Prophet (peace be upon him), ‘Ayyash bin Abu Rabi‘ah began to say "Subhan Allah." When the Prophet (peace be upon him) finished the prayer with salam, he asked: "Who was saying Subhan Allah just now?" He replied: "O Messenger of Allah! I said it, because I have heard that if a donkey passes in front, the prayer is invalidated." The Prophet (peace be upon him) said: "Nothing (that passes in front) invalidates the prayer."