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