Anas bin Malik reported,

The Prophet ﷺ said, "When one of you grows drowsy during prayer, let him sleep until he knows what he is reciting."

Azami 2769

Sahih

عن أنس

عن النبي ﷺ قال: إذا نعس أحدكم في الصلاة فلينم حتى يعلم ما يقرأ.

الأعظمي 2769صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Whoever becomes drowsy during prayer should sleep until the sleepiness leaves him
Numbering
Jami al-Kamil 2769 (2nd edition)
Azami 2769