AHMAD 15652:
from ʿUbaydullāh b. ʿAbdullāh b. ʿUtbah b. Masʿūd —
A man from among the companions of the Prophet ﷺ told him that he heard the Messenger of Allah ﷺ say: 'If any one of you in praying, let him not lift his gaze to the sky, or his eyesight will be taken away.'" (Using translation from Nasāʾī 1194)
أحمد ١٥٦٥٢:
عن عبيد الله بن عبد الله بن عتبه بن مسعود —
أَنَّ رَجُلًا مِنْ أَصْحَابِ رَسُولِ اللهِ ﷺ حَدَّثَهُ أَنَّهُ سَمِعَ رَسُولَ اللهِ ﷺ قَالَ إِذَا كَانَ أَحَدُكُمْ فِي صَلَاتِهِ فَلَا يَرْفَعْ بَصَرَهُ إِلَى السَّمَاءِ أَنْ يُلْتَمَعَ بَصَرُهُ
hadithunlocked.com