Sunan an-Nasa'i, Volume 1, Book 4, Hadith 444 (DarusSalam) ⓘ
It was narrated from Anas that the Messenger of Allah said: "If anyone of you feels drowsy during his Salah, let him go and take a nap."
أَخْبَرَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ، قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ الطُّفَاوِيُّ، قَالَ حَدَّثَنَا أَيُّوبُ، عَنْ أَبِي قِلاَبَةَ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " إِذَا نَعَسَ أَحَدُكُمْ فِي صَلاَتِهِ فَلْيَنْصَرِفْ وَلْيَرْقُدْ " .
also referenced under: Hadith 443 (Reference) & Book 4, Hadith 49 (In-Book)