Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:1043ʿUthmān b. Abū Shaybah > Ṭalḥah b. Yaḥyá > Yūnus > al-Zuhrī > Sālim > Ibn ʿUmar

“The Messenger of Allah ﷺ said: ‘Do not lift your gaze to the heavens lest your sight be snatched away,” meaning during prayer.  

ابن ماجة:١٠٤٣حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا طَلْحَةُ بْنُ يَحْيَى عَنْ يُونُسَ عَنِ الزُّهْرِيِّ عَنْ سَالِمٍ عَنِ ابْنِ عُمَرَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ لاَ تَرْفَعُوا أَبْصَارَكُمْ إِلَى السَّمَاءِ أَنْ تَلْتَمِعَ يَعْنِي فِي الصَّلاَةِ  


See similar narrations below:

Collected by Ibn Ḥibbān
ibnhibban:2281Muḥammad b. ʿAbd al-Raḥman al-Sāmī > Ismāʿīl b. Abū Ūways > Sulaymān b. Bilāl > Yūnus b. Yazīd al-Aylī > al-Zuhrī > Sālim b. ʿAbdullāh > Abīh ʿAbdullāh b. ʿUmar

“The Messenger of Allah ﷺ said: ‘Do not lift your gaze to the heavens lest your sight be snatched away,” meaning during prayer. (Using translation from Ibn Mājah 1043)  

ابن حبّان:٢٢٨١أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ السَّامِيُّ قَالَ حَدَّثَنَا إِسْمَاعِيلُ بْنُ أَبِي أُوَيْسٍ قَالَ حَدَّثَنِي سُلَيْمَانُ بْنُ بِلَالٍ عَنْ يُونُسَ بْنِ يَزِيدَ الْأَيْلِيِّ عَنِ الزُّهْرِيِّ عَنْ سَالِمِ بْنِ عَبْدِ اللَّهِ عَنْ أَبِيهِ عَبْدِ اللَّهِ بْنِ عُمَرَ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ «لَا تَرْفَعُوا أَبْصَارَكُمْ إِلَى السَّمَاءِ أَنْ تُلْتَمَعَ» يَعْنِي فِي الصَّلَاةِ