The Book of the Etiquette of Sleeping, Lying and Sitting etc
Riyad as-Salihin #138
كتاب آداب النوم
وعن يعيش بن طخفة الغفارى رضى الله عنه قال: قال أبى: بينما أنا مضطجع في المسجد على بطني إذا رجل يحركني برجله فقال: «إن هذه ضجعة يبغضها الله» قال: فنظرت، فإذا رسول الله صلى الله عليه وسلم. ((رواه أبو داود بإسناد صحيح)).
Ya'ish bin Tikhfah Al-Ghifari (May Allah be pleased with him) reported:
My father said: I was lying down on my belly in the mosque when someone shook me with his foot and said, “Lying down this way is disapproved by Allah.” I looked up and saw that it was Messenger of Allah (ﷺ)..
وعن يعيش بن طخفة الغفارى رضى الله عنه قال: قال أبى: بينما أنا مضطجع في المسجد على بطني إذا رجل يحركني برجله فقال: "إن هذه ضجعة يبغضها الله" قال: فنظرت ، فإذا رسول الله صلى الله عليه وسلم. ((رواه أبو داود بإسناد صحيح)).
My father said: I was lying down on my belly in the mosque when someone shook me with his foot and said, "Lying down this way is disapproved by Allah." I looked up and saw that it was Messenger of Allah (ﷺ)..
— Riyad as-Salihin, Hadith 138