A hadith like this has been narrated from the Messenger of Allah (ﷺ) on the authority of…

Sahih Muslim Book 6 Hadith 260

Sahih Muslim #784 b

The Book of Prayer - Travellers 6:260

A hadith like this has been narrated from the Messenger of Allah (ﷺ) on the authority of Anas by another chain of transmitters.

Chapter: The command to one who becomes sleepy while praying, or who starts to falter in his recitation of the Qur’an or statements of remembrance, to lie down or sit down until that goes away

Grade: Sahih