Sunan Abi Dawud Book 2, Hadith 311
The Messenger of Allah(ﷺ) as saying: "If one who passes in front of a man who is praying knew the responsibility he incurs, he would prefer to stand still for forty. . . rather than pass in front of him. Abu al-Nadr said: I do not know whether he said forty days, or months, or years."
Abu Dawud: Sufyan al-Thawri said: If a man passes proudly in front of me while I am praying, I shall stop him, and if a weak man passes, I shall not stop him.
I narrate what I witnesses from Abu Sa'id and heard from him. Abu Sa'id entered upon Marwan and said: I heard the Messenger of Allah (ﷺ) say: When one of you prays facing any object which conceals him from people, and someone wishes to pass in front of him, he should strike him at his chest; if he refuses (to go), he should fight him; he is only a devil.
Abu Dawud said: Sufyan Ath-Thawri said: "A person arrogantly walks in front of me while I am praying, so I stop him, and a weak person passes, so I dont stop him."
Abu Dharr said (and not the Prophet): If there is not anything like the back of a saddle in front of a man who is praying, then a donkey, a black dog, and a woman cut off his prayer. I asked him: Why has the black dog been specified, distinguishing it from a red, a yellow and a white dog? He replied: My nephew, I also asked the Messenger of Allah(ﷺ) the same question as you asked me. He said: The black dog is a devil.