Sunan Abi Dawud, Book 43, Hadith 84 (Abu Dawud 4858)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: If anyone sits at a place where he does not remember Allah, deprivation will descend on him from Allah; and if he lies at a place where he does not remember Allah, deprivation will descend on him from Allah.