The Messenger of Allah ﷺ said, "The prayer is interrupted by a woman, a donkey, and a dog passing in front of the worshipper, and what protects against this is something like the back of a camel saddle placed before him."
قال رسول الله ﷺ: يقطع الصلاة المرأة والحمار والكلب، ويقى ذلك مثل موخرة الرحل.
Muslim narrated it (511) from Ishaq bin Ibrahim, from Makhzumi, from Abdul-Wahid (who is Ibn Ziyad), from Ubaydullah bin Abdullah bin Asam, from Yazid bin Asam, from Abu Hurairah, who mentioned it.