Riyad as-SalihinChapter 4Hadith 138
Full Sharh — Riyad as-Salihin 138
وعن يعيش بن طخفة الغفارى رضى الله عنه قال: قال أبى: بينما أنا مضطجع في المسجد على بطني إذا رجل يحركني برجله فقال: "إن هذه ضجعة يبغضها الله" قال: فنظرت ، فإذا رسول الله صلى الله عليه وسلم. ((رواه أبو داود بإسناد صحيح)).
English Translation
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 (ﷺ)..
Source
Riyad as-Salihin(رياض الصالحين)
The Book of the Etiquette of Sleeping, Lying and Sitting etc
Hadith Number
138