Sunan Ibn Majah, Volume 2, Book 5, Hadith 1043 (DarusSalam) ⓘ
It was narrated that Ibn ‘Umar said: “The Messenger of Allah said: ‘Do not lift your gaze to the heavens lest your sight be snatched away,” meaning during prayer.
حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا طَلْحَةُ بْنُ يَحْيَى، عَنْ يُونُسَ، عَنِ الزُّهْرِيِّ، عَنْ سَالِمٍ، عَنِ ابْنِ عُمَرَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " لاَ تَرْفَعُوا أَبْصَارَكُمْ إِلَى السَّمَاءِ أَنْ تَلْتَمِعَ " . يَعْنِي فِي الصَّلاَةِ .
also referenced under: Hadith 1043 (Reference) & Book 5, Hadith 1096 (In-Book)