"The Messenger of Allah (ﷺ) sent me on an errand then I came back to him while he was praying. I greeted him with the salam and he gestured to me. When he finished he called me and said: 'You greeted me with Salam just now and I was praying.' And he was facing toward the east that day."
"The Messenger of Allah (ﷺ) sent me on an errand, then I came back to him while he was facing the east or the west. I greeted him with salam and he gestured to me. Then when he finished he called me and said: "O Jabir!" So I came and said: "O Messenger of Allah, I greeted you with Salam but you did not answer." He said: 'I was praying.'
The Messenger of Allah (ﷺ) said: "What is the matter with people who lift their gaze to the sky when praying?" And he spoke sternly concerning that until he said: "They must stop that or they will certainly lose their eyesight."
A man from among the companions of the Prophet (ﷺ) told him that he heard the Messenger of Allah (ﷺ) say: 'If any one of you in praying, let him not lift his gaze to the sky, or his eyesight will be taken away.'"
"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."
"I asked the Messenger of Allah (ﷺ) about looking here and there during prayer. He said: 'That is something that the Shaitan snatches from one's prayer.'"