(31) باب أَمْرِ مَنْ نَعَسَ فِي صَلاَتِهِ أَوِ اسْتَعْجَمَ عَلَيْهِ الْقُرْآنُ أَوِ الذِّكْرُ بِأَنْ يَرْقُدَ أَوْ يَقْعُدَ حَتَّى يَذْهَبَ عَنْهُ ذَلِكَ
A hadith like this has been narrated from the Messenger of Allah (ﷺ) on the authority of Anas by another chain of transmitters.
Reference: Sahih Muslim 784 b
In-book reference: Book 6, Hadith 260
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1715