Narrated Abu Dharr: The Prophet ﷺ said: Allah, the Most High, continues to turn favourably towards a servant while he is engaged in prayer as long as he does not look to the side (by turning the neck), but if he does so, He turns away from him.
Hadith Referenceسنن ابي داود / أبواب تفريع استفتاح الصلاة / 909
Hadith Takhrij« سنن النسائی/السھو 10 (1196)، (تحفة الأشراف: 11998)، وقد أخرجہ: مسند احمد (5/172)، سنن الدارمی/الصلاة 134 (1463) (حسن) » (اس کے راوی ابو الأحوص لین الحدیث ہیں ، بعض لوگوں کے نزدیک مجہول ہیں، لیکن شاہد کی وجہ سے یہ حدیث حسن ہے، ملاحظہ ہو: صحیح ابی داود: 843/م، وصحیح الترغیب: 552-554)
´It was narrated that Az-Zuhri said:` "I heard Abu Al-Ahwas saying to us in a gathering with Ibn Al-Musayyab when Ibn Al-Musayyab was sitting there, that he had heard Abu Dharr say: The Messenger of Allah (ﷺ) said: "Allah (SWT) continues to look upon His slave while he is praying, so long as he does not turn away. If he turns his face away, He turns away from him."
Hafiz Muhammad Ameen
1196. Commentary:
➊ Looking around during prayer is strictly prohibited.
➋ From this blessed hadith, the virtue and importance of prayer also become clear: prayer is a means for Allah, the Exalted, to turn His attention to His servant, and this is the perfection of Allah’s grace and kindness upon His servant.
➌ Looking around during prayer is to turn away from Allah, the Exalted. When the servant himself turns away from Allah’s mercy, then Allah, the Exalted, also turns away from him. Therefore, one cannot look around in any direction during prayer. However, if there is some necessity that compels one to look around during prayer, that is a different matter—for example: the imam, due to some need, glancing towards the followers, or the followers, due to necessity, glancing towards the imam. Even in such cases, one should only use the corner of the eye, not turn the entire face away from the qiblah, as will be mentioned in the hadith of the next chapter.
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 1196