The Prophet ﷺ said: When one of you prays, he should put something in front of his face, and if he can find nothing , he should set up his staff; but if he has no staff, he should draw a line; then what passes in front of him will not harm him. (Using translation from Abū Dāʾūd 689)
"إذَا صلّى إحَدُكُمْ فَليَجعَلْ تِلقاءَ وجهِه شيئًا فإِن لمْ يجدْ شيئًا فلْينصبْ عصًا فإِن لمْ يَكنْ معَه عصًا فليَخططْ بين يديه خطًّا، ثم لا يضرهُّ ما مَرَّ أمامَهُ" .