and also by Aḥmad (2/389, 515, 527).
Al-Ḥākim said, “Sound according to the criterion of Muslim,” and al-Dhahabī concurred; and such is indeed the case.
Among those who narrated it is Saʿīd ibn Abī Saʿīd al-Maqburī, whose wording is:
“Whoever sits in a place where he does not remember Allah incurs a loss from Allah, and whoever lies down without remembering Allah incurs a loss from Allah.”
78 – “Whoever sits in a place where he does not remember Allah incurs a loss from Allah, and whoever lies down without remembering Allah incurs a loss from Allah.”
It was related by Abū Dāwud (4856, 5059); al-Ḥumaydī in his Musnad (1158) – only the first half; and Ibn al-Sunnī (743) – only the second half, all through the route of Muḥammad ibn ʿAjlān from him.
I say: its chain is ḥasan (sound).
Al-Mundhirī, in al-Targhīb (2/235), attributed it to Abū Dāwud with this wording and with an additional phrase: