Sunan Abi Dawud Book 2, Hadith 329
The Prophet (ﷺ) said: Nothing interrupt prayer, but repulse as much as you can anyone who passes in front of you, for he is just a devil.
The Messenger of Allah (ﷺ) came to us accompanied by Abbas when we were in open country belonging to us. He prayed in a desert with no sutrah in front of him, and a she-ass and a bitch of ours were playing in front of him, but he paid no attention to that.
A youth from the Quraish passed in front of Abu Sa’id al-Khudri who was praying. He repulsed him. He returned again. He then repulsed him for the third time. When he finished the prayer, he said: Nothing cuts off prayer; but the Messenger of Allah (ﷺ) said: Repulse as much as you can, for he is just a devil.
Abu Dawud said: If two traditions of the prophet(ﷺ) conflict, the practice of the Companions after him should be taken into consideration.