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.
bayhaqi:3541ʿUmar b. ʿAbd al-ʿAzīz b. Qatādah > Abū al-Manṣūr al-ʿAbbās b. al-Faḍl al-Ḍabbī > Aḥmad b. Najdah > Saʿīd b. Manṣūr > Ismāʿīl b. Ibrāhīm > Ayyūb > Muḥammad > Nubbiʾt

[Machine] The Messenger of Allah ﷺ used to raise his gaze to the sky when he prayed, and a verse would be revealed to him. I do not know which verse it was, but Muhammad ibn Sirin liked his gaze during prayer to not go beyond his place of prayer. This is the preserved and transmitted narration. It has been narrated from Ismail ibn Ibrahim, who is the son of Aliyyah, in a connected narration.  

البيهقي:٣٥٤١أَخْبَرَنَا عُمَرُ بْنُ عَبْدِ الْعَزِيزِ بْنِ قَتَادَةَ أنبأ أَبُو الْمَنْصُورِ الْعَبَّاسُ بْنُ الْفَضْلِ الضَّبِّيُّ أنبأ أَحْمَدُ بْنُ نَجْدَةَ ثنا سَعِيدُ بْنُ مَنْصُورٍ ثنا إِسْمَاعِيلُ بْنُ إِبْرَاهِيمَ عَنْ أَيُّوبَ عَنْ مُحَمَّدٍ قَالَ نُبِّئْتُ

أَنَّ رَسُولَ اللهِ ﷺ كَانَ إِذَا صَلَّى رَفَعَ بَصَرَهُ إِلَى السَّمَاءِ فَنَزَلَتْ آيَةٌ إِنْ لَمْ تَكُنِ {الَّذِينَ هُمْ فِي صَلَاتِهِمْ خَاشِعُونَ} [المؤمنون 2] فَلَا أَدْرِي أَيَّ آيَةٍ هِيَ فَكَانَ مُحَمَّدُ بْنُ سِيرِينَ يُحِبُّ أَنْ لَا يُجَاوِزَ بَصَرُهُ مُصَلَّاهُ هَذَا هُوَ الْمَحْفُوظُ مُرْسَلًا وَقَدْ رُوِيَ عَنْ إِسْمَاعِيلَ بْنِ إِبْرَاهِيمَ هُوَ ابْنُ عَلَيَّةَ مَوْصُولًا  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:3542Abū ʿAbdullāh al-Ḥāfiẓ from my father

[Machine] The Messenger of Allah ﷺ used to raise his eyes to the sky when he prayed, and then the verse would be revealed, "Those who are in their prayer humbly submissive." [Surah Al-Mu'minun 2]. Then he would lower his head. This narration was reported by Hammad ibn Zaid from Ayyub as a mursal narration, and this is the preserved version.  

البيهقي:٣٥٤٢كَمَا أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ قَالَ حَدَّثَنِي أَبُو سَعِيدٍ أَحْمَدُ بْنُ يَعْقُوبَ الثَّقَفِيُّ ثنا أَبُو شُعَيْبٍ الْحَرَّانِيُّ أَخْبَرَنِي أَبِي أنبأ إِسْمَاعِيلُ بْنُ عُلَيَّةَ عَنْ أَيُّوبَ عَنْ مُحَمَّدِ بْنِ سِيرِينَ عَنْ أَبِي هُرَيْرَةَ ؓ

أَنَّ رَسُولَ اللهِ ﷺ كَانَ إِذَا صَلَّى رَفَعَ بَصَرَهُ إِلَى السَّمَاءِ فَنَزَلَتْ {الَّذِينَ هُمْ فِي صَلَاتِهِمْ خَاشِعُونَ} [المؤمنون 2] فَطَأْطَأَ رَأْسَهُ وَرَوَاهُ حَمَّادُ بْنُ زَيْدٍ عَنْ أَيُّوبَ مُرْسَلًا وَهَذَا هُوَ الْمَحْفُوظُ