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.
tirmidhi:588Maḥmūd b. Ghaylān > Wakīʿ > ʿAbdullāh b. Saʿīd b. Abū Hind > Baʿḍ Aṣḥāb ʿIkrimah

"The Prophet would glance during Salat" and he mentioned a similar narration.  

الترمذي:٥٨٨حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ حَدَّثَنَا وَكِيعٌ عَنْ عَبْدِ اللَّهِ بْنِ سَعِيدِ بْنِ أَبِي هِنْدٍ عَنْ بَعْضِ أَصْحَابِ عِكْرِمَةَ

أَنَّ النَّبِيَّ ﷺ كَانَ يَلْحَظُ فِي الصَّلاَةِ فَذَكَرَ نَحْوَهُ قَالَ وَفِي الْبَابِ عَنْ أَنَسٍ وَعَائِشَةَ