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. (Using translation from Muslim 499a)
"إذا وَضع أحَدُكم -وهو يريد أن يصلى- بين يديهِ مِثْلِ مؤخرِة الرَّحْلِ فليُصلِّ، ولا يُبالى مَنْ مرَّ وراء ذلك".