The author, may Allah shower blessings on him, said: The chapter of undesirability of glancing from one direction or the other during Salat.
The one who stands up to observe Prayer is in the presence of Allah – the Mighty and Sublime. Hence, one should not turn one's heart or face towards anything other than Allah, the Exalted. As regards turning away the heart, it involves engaging in thoughts not related to the Salat. Turning away the heart is worse than turning away the body in Salat. This is because it reduces (rewards) from the Salat so much so that a person will complete his Salat with nothing written for him except ten or less depending on his state of mind.
Turning away the face, on the other hand, means turning one's neck to the left or to the right side. One is ordered to face the Qiblah in his Salat; he should not turn in one direction or the other.
Aishah (may Allah be pleased with her) asked the Prophet ﷺ about
turning away in Salat, and he ﷺ replied: “It is something which the devil snatches from a slave’s Salat.”
Pouncing or snatching refers to taking away something clandestinely and swiftly from someone. That is, Satan will ensnare a person in his Salat until he leads him to turning left and right so as to reduce his reward.
Allah, the Exalted, faces the servant with His Face, and if a person turns away from his Lord, His Lord will also turn away from him. Consequently, the Prophet ﷺ forbade turning sideways on Salat. This is stated in the hadeeth of Anas bin Maalik (may Allah be pleased with him) that the Prophet ﷺ said: “Verily, looking sideways is destruction.” However, there is no harm in this if there is a necessity. For instance, there is no problem with turning around if you hear the sound of an animal that may harm you. Likewise, if you send a person on a very important errand, there is no harm on the condition that the turning should be limited to the head alone. As for turning the entire body, this nullifies the Salat because it involves turning away from the Qiblah, and one of the conditions of Salat is facing the Qiblah.
There are some people who do not turn the necks but do the turning with their eyes. You will see his eyes glancing in one direction or the other. If anyone stands up, he will look at him; if he moves, he will look at him. There is no doubt that this reduces the reward of the Salat. It is mandatory for a person to fix his eyes to the front looking at the point of prostration without unnecessarily looking sideways.
Allah alone grants success.