Sunan Abi Dawud Book 2, Hadith 306
The distance between the place where the Prophet (ﷺ) stood and the qiblah (i.e. the sutrah or the wall of the mosque) was as much as to allow a goat to pass.
The Prophet (ﷺ) said: When one of you prays facing a sutrah he should keep close to it, and not let the devil interrupt his prayer.
Abu Dawud said: This tradition has also been narrated by Waqid b. Muhammad from Safwan from Muhammad b. Sahl on the authority of his father, or on the authority of Muhammad b. Sahl from the Prophet (ﷺ). Some have narrated it from Nafi' b. Jubair on the authority of Sahl b. Sa'd. There is a variation in the chain of its narrators.
When one of you prays, he should not let anyone pass in front of him; he should turn him away as far as possible; but if he refuses (to go), he should fight him, for he is only a devil.