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