The Messenger of Allah ﷺ said: "People should certainly stop lifting their gaze to the sky when they supplicate during the prayer, or they will lose their eyesight."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لَيَنْتَهِيَنَّ أَقْوَامٌ عَنْ رَفْعِ أَبْصَارِهِمْ عِنْدَ الدُّعَاءِ فِي الصَّلاَةِ إِلَى السَّمَاءِ أَوْ لَتُخْطَفَنَّ أَبْصَارُهُمْ