It wasnarrated from Musa bin Talhah that his father said:
"We usedtoperform prayer while the beasts were passing in front of us. Thatwasmentioned to the Messenger of Allah (ﷺ) and he said: 'Ifsomething like the hand of a saddle* is placed in front of anyone ofyou, it will not matter whoever passes in front of him."
English reference: Vol. 1, Book 5, Hadith 940
Arabic reference: Book 5, Hadith 993