Remembrance of God and drawing near to Him - Section 2 Mishkat al-Masabih 2273

Arabic hadith text
وَعَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَا مِنْ قَوْمٍ يَقُومُونَ مِنْ مَجْلِسٍ لَا يَذْكُرُونَ اللَّهَ فِيهِ إِلَّا قَامُوا عَنْ مِثْلِ جِيفَةِ حِمَارٍ وَكَانَ عَلَيْهِمْ حَسرَةً» . رَوَاهُ أحمدُ وَأَبُو دَاوُد
Translation

He reported God's messenger as saying, "People who arise from an assembly in which they did not remember God will be just as if they had got up from an ass's corpse, and it will be a cause of grief to them."Ahmad and Abu Dawud transmitted it.