It is narrated from a Companion (may Allah be pleased with him) that he heard the Noble Prophet (peace and blessings be upon him) say: When any one of you is in prayer, he should not look towards the sky, lest his eyesight be taken away.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 22516