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