Mishkat al-Masabih 789
وَعَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا صَلَّى أَحَدُكُمْ إِلَى غَيْرِ السُّتْرَةِ فَإِنَّهُ يَقْطَعُ صَلَاتَهُ الْحِمَارُ وَالْخِنْزِيرُ وَالْيَهُودِيُّ وَالْمَجُوسِيُّ وَالْمَرْأَةُ وَتُجْزِئُ عَنْهُ إِذَا مَرُّوا بَيْنَ يَدَيْهِ عَلَى قَذْفَةٍ بِحَجَرٍ» . رَوَاهُ أَبُو دَاوُد
And from Ibn ʿAbbas, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "When one of you prays without a sutrah, his prayer is cut off by a donkey, a pig, a Jew, a Magian and a woman, and it suffices him if they pass in front of him at the distance of a stone's throw." Reported by Abu Dawud.