The Messenger of Allah ﷺ said, "Do not raise your eyes toward the sky, lest your sight be snatched away," meaning during the prayer.
حدثنا عثمان بن أبي شيبة حدثنا طلحة بن يحيى عن يونس عن الزهري عن سالم
قال رسول الله ﷺ لا ترفعوا أبصاركم إلى السماء أن تلتمع يعني في الصلاة
[Sahih] Abu Yaala narrated it in his Musnad, no. 5509, from Uthman bin Abu Shayba, with this wording. Ibn Hibban graded it sahih in al-Ihsan, no. 2281. Busiri noted that Zuhri narrated it with "an" as mentioned previously, part 707. Ahmad narrated it, 5/295, and this is his wording, as did Nasai, from Zuhri, "Ubaydullah bin Abdullah bin Utba bin Masud told me that a man among the companions of the Prophet told him..." and so on, similarly, and its chain of transmission is sahih. Abu Dawud... that