(53) بَابُ الْوُضُوءِ مِنَ النَّوْمِ وَمَنْ لَمْ يَرَ مِنَ النَّعْسَةِ وَالنَّعْسَتَيْنِ أَوِ الْخَفْقَةِ وُضُوءًا
Narrated `Aisha:
Allah's Messenger (ﷺ) said, "If anyone of you feels drowsy while praying he should go to bed (sleep) till his slumber is over because in praying while drowsy one does not know whether one is asking for forgiveness or for a bad thing for oneself."
Reference: Sahih al-Bukhari 212
In-book reference: Book 4, Hadith 78
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 4, Hadith 211