حَدَّثَنَا مُحَمَّدُ بْنُ إِسْمَاعِيلَ الْبَصْرِيُّ، حَدَّثَنَا مُعَاذٌ، حَدَّثَنَا هِشَامٌ، عَنْ يَحْيَى، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ أَحْسَبُهُ عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏إِذَا صَلَّى أَحَدُكُمْ إِلَى غَيْرِ سُتْرَةٍ فَإِنَّهُ يَقْطَعُ صَلاَتَهُ الْكَلْبُ وَالْحِمَارُ وَالْخِنْزِيرُ وَالْيَهُودِيُّ وَالْمَجُوسِيُّ وَالْمَرْأَةُ وَيُجْزِئُ عَنْهُ إِذَا مَرُّوا بَيْنَ يَدَيْهِ عَلَى قَذْفَةٍ بِحَجَرٍ ‏"‏ ‏.‏ قَالَ أَبُو دَاوُدَ فِي نَفْسِي مِنْ هَذَا الْحَدِيثِ شَىْءٌ كُنْتُ أُذَاكِرُ بِهِ إِبْرَاهِيمَ وَغَيْرَهُ فَلَمْ أَرَ أَحَدًا جَاءَ بِهِ عَنْ هِشَامٍ وَلاَ يَعْرِفُهُ وَلَمْ أَرَ أَحَدًا يُحَدِّثُ بِهِ عَنْ هِشَامٍ وَأَحْسَبُ الْوَهَمَ مِنَ ابْنِ أَبِي سَمِينَةَ - يَعْنِي مُحَمَّدَ بْنَ إِسْمَاعِيلَ الْبَصْرِيَّ مَوْلَى بَنِي هَاشِمٍ - وَالْمُنْكَرُ فِيهِ ذِكْرُ الْمَجُوسِيِّ وَفِيهِ ‏"‏ عَلَى قَذْفَةٍ بِحَجَرٍ ‏"‏ ‏.‏ وَذِكْرُ الْخِنْزِيرِ وَفِيهِ نَكَارَةٌ ‏.‏ قَالَ أَبُو دَاوُدَ وَلَمْ أَسْمَعْ هَذَا الْحَدِيثَ إِلاَّ مِنْ مُحَمَّدِ بْنِ إِسْمَاعِيلَ وَأَحْسَبُهُ وَهِمَ لأَنَّهُ كَانَ يُحَدِّثُنَا مِنْ حِفْظِهِ
Translation
Narrated Abdullah ibn Abbas

When one of you prays towards something other than a sutrah, his prayer is invalidated by a dog, a donkey, a pig, a Jew, a Magian, and a woman. It is sufficient for him if they pass in front of him at the distance of a stone's throw.

Abu Dawud said: There is something in my soul regarding this hadith. I used to discuss it with Ibrahim and others, and I did not see anyone who came with it from Hisham, nor did they recognize it, and I did not see anyone narrating it from Hisham. I think the illusion is from Ibn Abi Saminah — meaning Muhammad ibn Ismail al-Basri, the freed slave of Banu Hashim. The objectionable parts in it are the mention of the Magian, the mention of 'at the distance of a stone's throw', and the mention of the pig, and in it there is rejection.

Abu Dawud said: I did not hear this hadith except from Muhammad ibn Ismail, and I think he made a mistake because he used to narrate to us from his memory.