Jabir b. Samura reported:The Messenger of Allah (ﷺ) said: The people who lift their eyes towards the sky in Prayer should avoid it or they would lose their eyesight
Hadith No. 966
Sahih Muslim