Sunan Abu Dawud #1310
Prayer (Kitab Al-Salat): Voluntary Prayers 5:61
Narrated 'Aishah, wife of Prophet (ﷺ):
When one of you dozes in prayer he should sleep till his sleep is gone, for when one of you prays while he is dozing, perhaps he might curse himself if he begs pardon of Allah.