The Messenger of Allah (ﷺ) said: When one of you places in front of him so me. thing such as the back of a saddle, he should pray without caring who passes on the other side of it.
Sahih Muslim Book 4, Hadith 273