Sahih Muslim 428
Sahih Muslim · Book 4: The Book of Prayers · The Prohibition On Lifting Ones Gaze To The Heavens When in Salat
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.