The Messenger of Allah ﷺ said, "When one of you grows drowsy during his prayer, let him leave it and go to sleep."
أخبرنا يعقوب بن إبراهيم قال حدثنا محمد بن عبد الرحمن الطفاوي قال حدثنا أيوب عن أبي قلابة
أن رسول الله ﷺ قال إذا نعس أحدكم في صلاته فلينصرف وليرقد
Bukhari transmitted it, Wudu, Chapter on wudu after sleep and on the one who does not consider drowsiness to require wudu, etc., no. 213, from the hadith of Ayub through this same chain.