Riyad as-SalihinChapter 8Hadith 506
Full Sharh — Riyad as-Salihin 506
وعن عائشة رضي الله عنها، أن النبي صلى الله عليه وسلم قال: " إذا نعس أحدكم في الصلاة، فليرقد حتى يذهب عنه النوم، فإن أحدكم إذا صلى وهو ناعس، لعله يذهب يستغفر فيسب نفسه" ((متفق عليه)).
English Translation
'Aishah (May Allah be pleased with her) reported:: The Prophet (ﷺ) said, "When one of you dozes off while performing Salat, he should lie down till his drowsiness has gone away from him. When one of you performs Salat while dozing, he may abuse himself instead of seeking pardon (as a result of drowsiness).".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of Virtues
Hadith Number
506