Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:2081a

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)   

السيوطي:٢٠٨١a

"إذَا صلّى إحَدُكُمْ فَليَجعَلْ تِلقاءَ وجهِه شيئًا فإِن لمْ يجدْ شيئًا فلْينصبْ عصًا فإِن لمْ يَكنْ معَه عصًا فليَخططْ بين يديه خطًّا، ثم لا يضرهُّ ما مَرَّ أمامَهُ" .  

الشافعي، [عب] عبد الرازق [حم] أحمد [د] أبو داود [هـ] ابن ماجة [حب] ابن حبّان عن أبي هريرة

See similar narrations below:

Collected by Abū Dāwūd, Ibn Mājah, Aḥmad, Ibn Ḥibbān, Bayhaqī
abudawud:689Musaddad > Bishr b. al-Mufaḍḍal > Ismāʿīl b. Umayyah > Abū ʿAmr b. Muḥammad b. Ḥurayth > Jaddah Ḥurayth > Abū Hurayrah

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.  

أبو داود:٦٨٩حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا بِشْرُ بْنُ الْمُفَضَّلِ حَدَّثَنَا إِسْمَاعِيلُ بْنُ أُمَيَّةَ حَدَّثَنِي أَبُو عَمْرِو بْنُ مُحَمَّدِ بْنِ حُرَيْثٍ أَنَّهُ سَمِعَ جَدَّهُ حُرَيْثًا يُحَدِّثُ عَنْ أَبِي هُرَيْرَةَ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ إِذَا صَلَّى أَحَدُكُمْ فَلْيَجْعَلْ تِلْقَاءَ وَجْهِهِ شَيْئًا فَإِنْ لَمْ يَجِدْ فَلْيَنْصِبْ عَصًا فَإِنْ لَمْ يَكُنْ مَعَهُ عَصًا فَلْيَخْطُطْ خَطًّا ثُمَّ لاَ يَضُرُّهُ مَا مَرَّ أَمَامَهُ  

ibnmajah:943[Chain 1] Bakr b. Khalaf Abū Bishr > Ḥumayd b. al-Aswad > Ismāʿīl b. Umayyah [Chain 2] ʿAmmār b. Khālid > Sufyān b. ʿUyaynah > Ismāʿīl b. Umayyah > Abū ʿAmr b. Muḥammad b. ʿAmr b. Ḥurayth from his grandfather Ḥurayth b. Sulaym > Abū Hurayrah

“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.”  

ابن ماجة:٩٤٣حَدَّثَنَا بَكْرُ بْنُ خَلَفٍ أَبُو بِشْرٍ حَدَّثَنَا حُمَيْدُ بْنُ الأَسْوَدِ حَدَّثَنَا إِسْمَاعِيلُ بْنُ أُمَيَّةَ ح وَحَدَّثَنَا عَمَّارُ بْنُ خَالِدٍ حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ أَبِي عَمْرِو بْنِ مُحَمَّدِ بْنِ عَمْرِو بْنِ حُرَيْثٍ عَنْ جَدِّهِ حُرَيْثِ بْنِ سُلَيْمٍ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ إِذَا صَلَّى أَحَدُكُمْ فَلْيَجْعَلْ تِلْقَاءَ وَجْهِهِ شَيْئًا فَإِنْ لَمْ يَجِدْ فَلْيَنْصِبْ عَصًا فَإِنْ لَمْ يَجِدْ فَلْيَخُطَّ خَطًّا ثُمَّ لاَ يَضُرُّهُ مَا مَرَّ بَيْنَ يَدَيْهِ  

ahmad:7392Sufyān > Ismāʿīl b. Umayyah > Abū Muḥammad b. ʿAmrb. Ḥurayth al-ʿUdhrī > Marrah > Abū ʿAmr b. Muḥammad b. Ḥurayth from his father > Abū Hurayrah

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)   

أحمد:٧٣٩٢حَدَّثَنَا سُفْيَانُ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ أَبِي مُحَمَّدِ بْنِ عَمْرِوبْنِ حُرَيْثٍ الْعُذْرِيِّ قَالَ مَرَّةً عَنْ أَبِي عَمْرِو بْنِ مُحَمَّدِ بْنِ حُرَيْثٍ عَنْ جَدِّهِ سَمِعْتُ أَبَا هُرَيْرَةَ يَقُولُ قَالَ

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

ahmad:7461ʿAbd al-Razzāq > Maʿmar And al-Thhawrī > Ismāʿīl b. Umayyah > Ibn ʿAmr b. Ḥurayth from his father > Abū Hurayrah Rafaʿah

[Machine] When one of you prays, let them pray towards something. If there is nothing, then a stick, and if there is no stick, then draw a line, and it will not harm them what passes before them.  

أحمد:٧٤٦١حَدَّثَنَا عَبْدُ الرَّزَّاقِ حَدَّثَنَا مَعْمَرٌ وَالثَّوْرِيُّ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ ابن عَمْرِو بْنِ حُرَيْثٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ رَفَعَهُ قَالَ

إِذَا صَلَّى أَحَدُكُمْ فَلْيُصَلِّ إِلَى شَيْءٍ فَإِنْ لَمْ يَكُنْ شَيْءٌ فَعَصًا وَإِنْ لَمْ يَكُنْ عَصًا فَلْيَخْطُطْ خَطًّا ثُمَّ لَا يَضُرُّهُ مَا مَرَّ بَيْنَ يَدَيْهِ  

ahmad:7615ʿAbd al-Razzāq > Maʿmar And al-Thhawrī > Ismāʿīl b. Umayyah > Abū ʿAmr b. Ḥurayth from his father > Abū Hurayrah Rafaʿah

[Machine] If one of you prays, let him pray towards something. If there is nothing, then a stick. And if there is no stick, then let him draw a line, and whatever passes in front of him will not harm him.  

أحمد:٧٦١٥حَدَّثَنَا عَبْدُ الرَّزَّاقِ حَدَّثَنَا مَعْمَرٌ وَالثَّوْرِيُّ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ أَبِي عَمْرِو بْنِ حُرَيْثٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ رَفَعَهُ قَالَ

إِذَا صَلَّى أَحَدُكُمْ فَلْيُصَلِّ إِلَى شَيْءٍ فَإِنْ لَمْ يَكُنْ شَيْءٌ فَعَصًا فَإِنْ لَمْ يَكُنْ عَصًا فَلْيَخْطُطْخَطًّا ثُمَّ لَا يَضُرُّهُ مَا مَرَّ بَيْنَ يَدَيْهِ  

ذِكْرُ وَصْفِ اسْتِتَارِ الْمُصَلِّي فِي صَلَاتِهِ

ibnhibban:2361Abū Yaʿlá > Abū Khaythamah > Sufyān > Ismāʿīl b. Umayyah > Abū Muḥammad b. ʿAmr b. Ḥurayth from his father > Abū Hurayrah

“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.” (Using translation from Ibn Mājah 943)   

ابن حبّان:٢٣٦١أَخْبَرَنَا أَبُو يَعْلَى قَالَ حَدَّثَنَا أَبُو خَيْثَمَةَ قَالَ حَدَّثَنَا سُفْيَانُ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ أَبِي مُحَمَّدِ بْنِ عَمْرِو بْنِ حُرَيْثٍ عَنْ جَدِّهِ سَمِعَ أَبَا هُرَيْرَةَ يَقُولُ قَالَ

أَبُو الْقَاسِمِ ﷺ «إِذَا صَلَّى أَحَدُكُمْ فَلْيَجْعَلْ تِلْقَاءَ وَجْهِهِ شَيْئًا فَإِنْ لَمْ يَجِدْ فَلْيُلْقِ عَصًا فَإِنْ لَمْ يَجِدْ عَصًا فَلْيَخُطَّ خَطًّا ثُمَّ لَا يَضُرُّهُ مَا يَمُرُّ بَيْنَ يَدَيْهِ»  

ذِكْرُ إِجَازَةِ الِاسْتِتَارِ لِلْمُصَلِّي فِي الْفَضَاءِ بِالْخَطِّ عِنْدَ عَدَمِ الْعَصَا وَالْعَنَزَةِ

ibnhibban:2376Abū Yaʿlá > Muḥammad b. al-Ṣabbāḥ al-Dūlābī > Muslim b. Khālid > Ismāʿīl b. Umayyah > Abū Muḥammad b. ʿAmr b. Ḥurayth from his father from his grandfather > Abū Hurayrah

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)   

ابن حبّان:٢٣٧٦أَخْبَرَنَا أَبُو يَعْلَى قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ الدُّولَابِيُّ قَالَ حَدَّثَنَا مُسْلِمُ بْنُ خَالِدٍ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ أَبِي مُحَمَّدِ بْنِ عَمْرِو بْنِ حُرَيْثٍ عَنْ أَبِيهِ عَنْ جَدِّهِ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «إِذَا صَلَّى أَحَدُكُمْ فَلْيَجْعَلْ تِلْقَاءَ وَجْهِهِ شَيْئًا فَلْيَنْصِبْ عَصًا فَإِنْ لَمْ يَكُنْ مَعَهُ عَصًا فَلْيَخُطَّ خَطًّا ثُمَّ لَا يَضُرُّهُ مَنْ مَرَّ أَمَامَهُ»  

bayhaqi:3466[Chain 1] Abū ʿAlī al-Rūdhbārī > Muḥammad b. Bakr > Abū Dāwud > Musaddad [Chain 2] Abū al-Ḥasan al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb al-Qāḍī > Musaddad > Bishr b. al-Mufaḍḍal > Ismāʿīl b. Umayyah > Abū ʿAmr b. Muḥammad b. Ḥurayth > Jaddah Ḥurayth > Abū Hurayrah ؓ

[Machine] The Messenger of Allah ﷺ said: "When one of you prays, let him place something in front of his face. If he cannot find anything, then let him set up a stick. If he doesn't have a stick, then let him draw a line, and thus what passes in front of him will not harm him. And likewise..."  

البيهقي:٣٤٦٦أَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ مُحَمَّدُ بْنُ بَكْرٍ ثنا أَبُو دَاوُدَ ثنا مُسَدَّدٌ (ح) وَأَخْبَرَنَا أَبُو الْحَسَنِ الْمُقْرِئُ أنبأ الْحَسَنُ بْنُ مُحَمَّدِ بْنِ إِسْحَاقَ ثنا يُوسُفُ بْنُ يَعْقُوبَ الْقَاضِي ثنا مُسَدَّدٌ ثنا بِشْرُ بْنُ الْمُفَضَّلِ ثنا إِسْمَاعِيلُ بْنُ أُمَيَّةَ حَدَّثَنِي أَبُو عَمْرِو بْنُ مُحَمَّدِ بْنِ حُرَيْثٍ أَنَّهُ سَمِعَ جَدَّهُ حُرَيْثًا يُحَدِّثُ عَنْ أَبِي هُرَيْرَةَ ؓ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ إِذَا صَلَّى أَحَدُكُمْ فَلْيَجْعَلْ تِلْقَاءَ وَجْهِهِ شَيْئًا فَإِنْ لَمْ يَجِدْ فَلْيَنْصِبْ عَصًا فَإِنْ لَمْ تَكُنْ مَعَهُ عَصًا فَلْيَخْطُطْ خَطًّا ثُمَّ لَا يَضُرُّهُ مَا مَرَّ أَمَامَهُ وَكَذَلِكَ  

رَوَاهُ رَوْحُ بْنُ الْقَاسِمِ عَنْ إِسْمَاعِيلَ وَابْنِ عُيَيْنَةَ فِي إِحْدَى الرِّوَايَتَيْنِ عَنْهُ عَنْ إِسْمَاعِيلَ وَرَوَاهُ سُفْيَانُ الثَّوْرِيُّ عَنْ إِسْمَاعِيلَ