Sunan Ibn Majah – Hadith No : 996

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

Hadith In Arabic Text :

حدثنا بكر بن خلف أبو بشر، حدثنا حميد بن الأسود، حدثنا إسماعيل بن أمية، ح وحدثنا عمار بن خالد، حدثنا سفيان بن عيينة، عن إسماعيل بن أمية، عن أبي عمرو بن محمد بن عمرو بن حريث، عن جده، حريث بن سليم عن أبي هريرة، عن النبي صلى الله عليه وسلم قال ‏”‏ إذا صلى أحدكم فليجعل تلقاء وجهه شيئا فإن لم يجد فلينصب عصا فإن لم يجد فليخط خطا ثم لا يضره ما مر بين يديه ‏”‏ ‏.‏

Chapter : Establishing the Prayer and the Sunnah Regarding Them – كتاب إقامة الصلاة والسنة فيها