حَدَّثَنَا خَالِدُ بْنُ مَخْلَدٍ، قَالَ: حَدَّثَنَا سُلَيْمَانُ بْنُ بِلاَلٍ قَالَ: حَدَّثَنِي مُحَمَّدُ بْنُ عَجْلاَنَ قَالَ: أَخْبَرَنِي سَعِيدٌ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: ”إِذَا جَاءَ الرَّجُلُ الْمَجْلِسَ فَلْيُسَلِّمْ، فَإِنْ جَلَسَ ثُمَّ بَدَا لَهُ أَنْ يَقُومَ قَبْلَ أَنْ يَتَفَرَّقَ الْمَجْلِسُ فَلْيُسَلِّمْ، فَإِنَّ الأُولَى لَيْسَتْ بِأَحَقَّ مِنَ الأخْرَى.“
It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Prophet (peace and blessings of Allah be upon him) said: "When any of you comes to a gathering, he should greet with salam. If he sits down and then has to get up and leave before the gathering disperses, he should greet with salam, for the first salam is not more important than the second."