Hadith 1009

حَدَّثَنَا مَطَرُ بْنُ الْفَضْلِ، قَالَ‏:‏ حَدَّثَنَا رَوْحُ بْنُ عُبَادَةَ، قَالَ‏:‏ حَدَّثَنَا بِسْطَامٌ قَالَ‏:‏ سَمِعْتُ مُعَاوِيَةَ بْنَ قُرَّةَ قَالَ‏:‏ قَالَ لِي أَبِي‏:‏ يَا بُنَيَّ، إِنْ كُنْتَ فِي مَجْلِسٍ تَرْجُو خَيْرَهُ، فَعَجِلَتْ بِكَ حَاجَةٌ فَقُلْ‏:‏ سَلاَمٌ عَلَيْكُمْ، فَإِنَّكَ تَشْرَكُهُمْ فِيمَا أَصَابُوا فِي ذَلِكَ الْمَجْلِسِ، وَمَا مِنْ قَوْمٍ يَجْلِسُونَ مَجْلِسًا فَيَتَفَرَّقُونَ عَنْهُ لَمْ يُذْكَرِ اللَّهُ، إِلاَّ كَأَنَّمَا تَفَرَّقُوا عَنْ جِيفَةِ حِمَارٍ‏.‏
It is narrated from Sayyiduna Mu'awiyah bin Qurrah (may Allah be pleased with them) that my respected father said to me: My son! If you are in a gathering from which you hope for goodness, and then due to some need you have to leave early, then leave by saying «السلام علیکم». In this way, you will share in the goodness that reaches the people of the gathering. And any people who sit in a gathering and part from each other without mentioning Allah, they are like those who got up from a dead donkey.
Hadith Reference الادب المفرد / كتاب السلام / 1009
Hadith Grading الألبانی: صحيح موقوف
Hadith Takhrij «صحيح موقوف : سنن أبى داؤد ، الأدب ، ح : 4855 و جامع الترمذي ، الدعوات ، ح : 3380»