The Prohibition On Lifting Ones Gaze To The Heavens When in Salat Sahih Muslim 428
Translation
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.