Mishkat al-Masabih #726
Prayer
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَعَنْ أَبِي سَعِيدٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا صَلَّى أَحَدُكُمْ إِلَى شَيْءٍ يَسْتُرُهُ مِنَ النَّاسِ فَأَرَادَ أَحَدٌ أَنْ يَجْتَازَ بَيْنَ يَدَيْهِ فَلْيَدْفَعْهُ فَإِنْ أَبَى فَلْيُقَاتِلْهُ فَإِنَّمَا هُوَ شَيْطَانٌ» . هَذَا لَفْظُ الْبُخَارِيِّ وَلمُسلم مَعْنَاهُ
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.
Topics
About Mishkat al-Masabih
This hadith is #726 from Mishkat al-Masabih, in the Book of Prayer.