Sunan Abi Dawud, Book 43, Hadith 287 (Abu Dawud 5061)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: If anyone lies on his side where he does not remember Allah, deprivation will descend on him on the Day of Resurrection; and if anyone sits in a place where he does not remember Allah, deprivation will descend on him on the Day of Resurrection.