The Prophet (ﷺ) said, "If anyone of you feels drowsy while praying, he should sleep till he understands what he is saying (reciting).
Sahih al-Bukhari Book 4, Hadith 79