Abu Sa'id reported God’s Messenger as saying, “When one of you prays facing something which conceals him from people and someone wishes to pass in front of him, he should turn away; but if he refuses to go, he should turn him away forcibly, for he is only a devil.” This is Bukhari’s wording, and Muslim has something to the same effect.
Hadith Referenceمشكوة المصابيح / كتاب الصلاة / 777
Hadith Gradingالألبانی:صَحِيحٌ | زبیر علی زئی:متفق عليه
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «متفق عليه، رواه البخاري (509) و مسلم (259/ 505)»