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." (PT)
English reference (PT): Vol. 1, Book 5, Hadith 943 (PT)
Arabic reference (PT): Book 5, Hadith 996 (PT)