The Prophet (ﷺ) said, "What is wrong with those people who look towards the sky during the prayer?" His
talk grew stern while delivering this speech and he said, "They should stop (looking towards the sky
during the prayer); otherwise their eyesight would be taken away."
Sahih al-Bukhari Book 10, Hadith 144