The Prophet ﷺ said, "What is the matter with people who raise their eyes toward the sky during their prayer?" He spoke very sternly about this, until he said, "They must stop doing that, or their sight will be snatched away."
حدثنا محمد بن بشر حدثنا سعيد بن أبي عروبة عن قتادة
عن النبي ﷺ أنه قال ما بال أقوام يرفعون أبصارهم إلى السماء في صلاتهم قال فاشتد قوله في ذلك حتى قال لينتهن عن ذلك أو لتخطفن أبصارهم