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