حَدَّثَنَا جَعْفَرُ بْنُ مِهْرَانَ السَّبَّاكُ ، حَدَّثَنَا عَبْدُ الْوَارِثِ ، عَنْ أَيُّوبَ ، عَنْ أَبِي قِلَابَةَ ، عَنْ أَنَسٍ ، قَالَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : إِذَا نَعَسَ أَحَدُكُمْ وَهُوَ يُصَلِّي ، فَلْيَنْصَرِفْ حَتَّى يَعْقِلَ مَا يَقُولُ .
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you becomes drowsy while he is praying, let him leave (the prayer) until he is aware of what he is saying (with his tongue)."