ذِكْرُ الْأَمْرِ بِالسَّلَامِ لِلْمَرْءِ عِنْدَ الِانْتِهَاءِ إِلَى نَادِي قَوْمٍ مَعَ اسْتِعْمَالِهِ مِثْلَهُ عِنْدَ رُجُوعِهِ عَنْهُمْ
The Prophet ﷺ said: When one of you comes to an assembly, he should give a salutation and if he feels inclined to get up, he should give a salutation, for the former is not more of a duty than the latter. (Using translation from Abū Dāʾūd 5208)
قَالَ رَسُولُ اللَّهِ ﷺ «إِذَا انْتَهَى أَحَدُكُمْ إِلَى مَجْلِسٍ فَلْيُسَلِّمْ وَإِذَا قَامَ فَلْيُسَلِّمْ فَلَيْسَتِ الْأُولَى بِأَحَقَّ مِنَ الْآخِرَةِ»