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)
أَبُو الْقَاسِمِ ﷺ إِذَا صَلَّى أَحَدُكُمْ فَلْيَجْعَلْ تِلْقَاءَ وَجْهِهِ شَيْئًا فَإِنْ لَمْ يَجِدْ شَيْئًا فَلْيَنْصِبْ عَصًا فَإِنْ لَمْ يَكُنْ مَعَهُ عَصًا فَلْيَخُطَّ خَطًّا وَلَا يَضُرُّهُ مَا مَرَّ بَيْنَ يَدَيْهِ