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