A person should not take leave of his friend except with a matter of halacha (Torah law).

אל יפטר אדם מחבירו אלא מתוך דבר הלכה
Shiurim in this topic
2190. Remembering Others for Good Brings Double Blessing from Heaven זכירת אחרים לטובה מביאה ברכה כפולה מן השמים