Live among people in such a way that if you die, they weep for you, and if you live, they long for you.
خالطوا الناس مخالطة إن متّم معها بكوا عليكم، وإن عشتم حنّوا إليكم
Hâlitu'n-nâse muhâlataten in müttüm meahâ bekev aleyküm, ve in ıştüm hannû ileyküm
Hazrat Ali, Nahj al-Balagha, saying 10 (Subhi al-Salih edition, p. 470; saying 9 in the Abduh edition). Nahj al-Balagha is a compilation by al-Sharif al-Radi (d. 1015), without chains of transmission.
The measure is death.
When you are gone, will they weep for you?
While you live, there is a measure too:
when you are far, will they miss you?
Getting along is an easy word.
Within it are patience, regard and loyalty.
"Even your enemies" is commonly added.
It is not in the original text.