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. (Using translation from Muslim 428)
عَنِ النَّبِيِّ ﷺ قَالَ «لَيَنْتَهِيَنَّ أَقْوَامٌ يَرْفَعُونَ أَبْصَارَهُمْ فِي الصَّلَاةِ إِلَى السَّمَاءِ أَوْ لَا تَرْجِعُ إِلَيْهِمْ»