Hadith on Prayer: Beware of ruin by distraction during prayer

Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “O my son, beware of looking to the side during prayer, for distraction in prayer is a cause of ruin. If you must do so, then only in voluntary prayers and not obligatory prayers.”

Source: Sunan al-Tirmidhī 589

Grade: Hasan (fair) according to Al-Tirmidhi

عَنْ أَنَس بْن مَالِكٍ قَالَ لِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَا بُنَيَّ إِيَّاكَ وَالِالْتِفَاتَ فِي الصَّلَاةِ فَإِنَّ الِالْتِفَاتَ فِي الصَّلَاةِ هَلَكَةٌ فَإِنْ كَانَ لَا بُدَّ فَفِي التَّطَوُّعِ لَا فِي الْفَرِيضَةِ

589 سنن الترمذي أبواب السفر باب ما ذكر في الالتفات في الصلاة

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ