Hadithcore
Hadith #2103010

Narrated Jabir bin Samura (RA):

Allah's Messenger (ﷺ) said: "Those people who raise their eyes to heaven while in Salat (prayer) should stop (doing so) or else their sight will not return to them." [Reported by Muslim].

وَعَنْ جَابِرِ بْنِ سَمُرَةٍ ‏- رضى الله عنه ‏- قَالَ : قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ لَيَنْتَهِيَنَّ قَوْمٌ يَرْفَعُونَ أَبْصَارَهُمْ إِلَى اَلسَّمَاءِ فِي اَلصَّلَاةِ أَوْ لَا تَرْجِعَ إِلَيْهِمْ } رَوَاهُ مُسْلِمٌ .‏ [1]‏

References2 variants
Sunnah.com reference
Book 2, Hadith 118
Arabic/English book reference
Book 2, Hadith 246