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