It is narrated from Hazrat Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: What is the matter with people that during prayer they raise their eyes towards the sky? The Prophet (peace and blessings be upon him) strongly forbade this and said: People should refrain from this, otherwise their eyesight will be taken away.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 12146