Anas bin Malik reported,

The Messenger of Allah ﷺ led his companions in prayer one day, and when he finished the prayer, he turned his face toward the people and said, "What is the matter with people who lift their gaze toward the sky during prayer?" He spoke about it so sternly that he said, "They must stop doing that, or Allah will surely snatch away their sight."

Ibn Majah 1044

Sahih

حدثنا نصر بن علي الجهضمي حدثنا عبد الأعلى حدثنا سعيد عن قتادة

عن أنس بن مالك قال

صلى رسول الله ﷺ يوما بأصحابه فلما قضى الصلاة أقبل على القوم بوجهه فقال ما بال أقوام يرفعون أبصارهم إلى السماء حتى اشتد قوله في ذلك لينتهن عن ذلك أو ليخطفن الله أبصارهم

ابن ماجه 1044صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Humility in prayer
Numbering
Darussalam 1044
Ibn Majah 1044