It wasnarrated from Abu Hurairah that the Prophet (ﷺ) said:
"Whenanyone of you performs prayer, let him put something in front of him.If he cannot find anything then let him put a stick. If he cannotfindone, then let him draw a line. Then it will not matter ifanythingpasses in front of him." (FR)
English reference (FR): Vol. 1, Book 5, Hadith 943 (FR)
Arabic reference (FR): Book 5, Hadith 996 (FR)