It wasnarrated that Anas bin Malik said:
"The Messenger of Allah(ﷺ)led his Companions in prayer one day. When he had finishedprayer heturned to face the people and said: 'What is wrong with somepeoplethat they lift their gaze to the heavens?' He spoke severelyconcerning that: 'They should certainly abstain from that or Allahwill snatch away their sight.'"
English reference: Vol. 1, Book 5, Hadith 1044
Arabic reference: Book 5, Hadith 1097