In The Name of Allaah, The Most Merciful, The Bestower of Mercy.
Imaam As-Sadi [rahimahullaah] said:
When you sit with the people, make humility the sign by which you are recognized, fear of Allaah should be your shield and giving advice to the servants of Allaah as your constant habit. Be eager to (make) every gathering in which you sit one of goodness- either research into affairs of knowledge or advice on religious matters; either directing (others) towards a general or a particular beneficial affair, or making a mention of the blessings of Allaah; either making a mention of the superior status of praiseworthy manners and good etiquettes or warning against that which is detrimental to the well-being of one’s religious or worldly (affairs). The least of this [i.e. your companionship and advice to those you sit with] is that the earnings from their occupations should be by way of permissible (means) and not what is forbidden.
Behave well towards the young, the old and your peers. Deal toward everyone in a way they deserve and have respect for the one who deserves to be respected and honoured. Be eager to make your congregation relaxed by way of speech that is appropriate and good, even if that was in relation to the worldly (affairs).
The sensible and determined person achieves abundant goodness in the gatherings of the people and he becomes more beloved to them than all [beloved things]. This is because he approaches the people with what they approve [i.e. good] and statements they desire, and the foundation in this is success in taking over control of all the affairs placed before them.
And these affairs [i.e. good advice and companionship] become more emphasized on a journey, because during a journey sitting together is prolonged and the travellers are in need of having someone who revives their hearts with good statements, the news of events and joke – if all of that is truth and not too much-and to assist them with the essential affairs of travel. And Allaah is the One who grants all success.
[An Excerpt from ‘Noorul Basaa’ir Wal al-baab fee ahkaam al ‘Ibaadaat Wal Mu‘aamalaat Wal Huqooq Wal Aadaab’ pages 64-65. Slightly paraphrased]