كتاب الصلاة
4  
The Book of Prayers
(48)
Chapter: Preventing One Who Wants To Pass In Front Of A Praying Person
(48)
باب مَنْعِ الْمَارِّ بَيْنَ يَدَىِ الْمُصَلِّي ‏
Sahih Muslim 505 a

Abu Sa'id al-Khudri reported that the Messenger of Allah (ﷺ) said:

When any one of you prays he should not let anyone pass in front of him (if there is no sutra), and should try to turn him away as far as possible, but if he refuses to go, he should turn him away forcibly for he is a devil.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي سَعِيدٍ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ إِذَا كَانَ أَحَدُكُمْ يُصَلِّي فَلاَ يَدَعْ أَحَدًا يَمُرُّ بَيْنَ يَدَيْهِ وَلْيَدْرَأْهُ مَا اسْتَطَاعَ فَإِنْ أَبَى فَلْيُقَاتِلْهُ فَإِنَّمَا هُوَ شَيْطَانٌ ‏"‏ ‏.‏
Reference : Sahih Muslim 505a
In-book reference : Book 4, Hadith 290
USC-MSA web (English) reference : Book 4, Hadith 1023
  (deprecated numbering scheme)