Hadith #157
Chapter: The Book of the Etiquette of Sleeping, Lying and Sitting etc
كتاب آداب النوم
Arabic Text
وعنه عن رسول الله صلى الله عليه وسلم قال: "من قعد مقعداً لم يذكر الله تعالى فيه كانت عليه من الله ترة، ومن اضطجع مضجعاً لم يذكر الله فيه كانت عليه من الله ترة" ((رَوَاهُ أبُو دَاوُدَ)). وقد سبق قريباً، وشرحنا "الترة" فيه.
English Translation
Abu Hurairah (may Allah be pleased with him) reported that messenger of Allah (ﷺ) said, "If anyone sits in a gathering where he does not remember Allah, he will bring grief upon himself (on the Day of Resurrection), and he who lies down in a place where he does not remember Allah, will bring grief upon himself (on the Day of Resurrection).".
Quran References
Reference: Riyadh al-Salihin, Book 4, Hadith 157
Sunnah.com ref: riyadh-salihin 157
Islam.wiki ID: IWH-66995