Sunan Ibn Majah, Book 5, Hadith 141 (Ibn Majah 943)

It was narrated from Abu Hurairah that the Prophet (ﷺ) said:

“When anyone 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 cannot find one, then let him draw a line. Then it will not matter if anything passes in front of him.”