Sunan Ibn Majah, Volume 2, Book 5, Hadith 1044 (DarusSalam) ⓘ
It was narrated that Anas bin Malik said: “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.’”
حَدَّثَنَا نَصْرُ بْنُ عَلِيٍّ الْجَهْضَمِيُّ، حَدَّثَنَا عَبْدُ الأَعْلَى، حَدَّثَنَا سَعِيدٌ، عَنْ قَتَادَةَ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ صَلَّى رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ يَوْمًا بِأَصْحَابِهِ فَلَمَّا قَضَى الصَّلاَةَ أَقْبَلَ عَلَى الْقَوْمِ بِوَجْهِهِ فَقَالَ " مَا بَالُ أَقْوَامٍ يَرْفَعُونَ أَبْصَارَهُمْ إِلَى السَّمَاءِ " . حَتَّى اشْتَدَّ قَوْلُهُ فِي ذَلِكَ " لَيَنْتَهُنَّ عَنْ ذَلِكَ أَوْ لَيَخْطَفَنَّ اللَّهُ أَبْصَارَهُمْ " .
also referenced under: Hadith 1044 (Reference) & Book 5, Hadith 1097 (In-Book)