It was narrated that Ibn 'Abbas said:
"He would sleep like that while he was sitting up."
English reference: Vol. 1, Book 1, Hadith 476
Arabic reference: Book 1, Hadith 514
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.