The Messenger of Allah ﷺ said, "When one of you becomes drowsy while praying, he should leave the prayer and sleep until he knows what he is saying."
حدثنا عبد الصمد حدثنا أبي حدثنا أيوب عن أبي قلابة
قال رسول الله ﷺ إذا نعس أحدكم وهو في الصلاة فلينصرف فلينم حتى يعلم ما يقول