Hadithcore
Mishkat al-Masabih, 777

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.

وَعَنْ أَبِي سَعِيدٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا صَلَّى أَحَدُكُمْ إِلَى شَيْءٍ يَسْتُرُهُ مِنَ النَّاسِ فَأَرَادَ أَحَدٌ أَنْ يَجْتَازَ بَيْنَ يَدَيْهِ فَلْيَدْفَعْهُ فَإِنْ أَبَى فَلْيُقَاتِلْهُ فَإِنَّمَا هُوَ شَيْطَانٌ» . هَذَا لَفْظُ الْبُخَارِيِّ وَلمُسلم مَعْنَاهُ

References1 variant
In-Book Reference
Book 4, Hadith 205