“The Messenger of Allah (ﷺ) led his Companions in prayer one day. When he had finished prayer he turned to face the people and said: ‘What is wrong with some people that they lift their gaze to the heavens?’ He spoke severely concerning that: ‘They should certainly abstain from that or Allah will snatch away their sight.’”
Sunan Ibn Majah Book 5, Hadith 242