Abu Sa'id reported God’s Messenger as saying, “Nothing interrupts prayer, but repulse, as much as you can anyone who passes in front of you, for he is just a devil.”
Al-Fadl b. ‘Abbas said, “God’s Messenger came to us accompanied by ‘Abbas when we were in open country belonging to us. He prayed in a desert with no sutra 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.”
Abu Dawud transmitted it and Nasa’i has something similar.
‘A’isha said, “I was sleeping in front of God’s Messenger with my legs between him and the qibla. When he prostrated himself he pinched me and I drew up my legs, and when he stood up I stretched them out.” She added, “At that time there were no lamps in the houses.”
Al-Miqdad b. al-Aswad said, “I never saw God’s Messenger praying in front of a stick, a pillar, or a tree, without having it opposite his right or left eyebrow (i.e. side), and not facing it directly.”