Nahj al-Balagha Hadith n. 412

Selections from The Sayings and Preaching of Amir al-Muminin Ali ibn Abi Talib (Peace Be Upon Him) Including His Replies to Questions and Maxims Expressed for Various Purposes.
Translated by Sayyid Ali Reza

وَقَالَ (عليه ‏السلام):

Amir al-mu'minin, peace be upon him, said:

كَفَاكَ أَدَباً لِنَفْسِكَ

It is enough for your own discipline

اجْتِنَابُ مَا تَكْرَهُهُ مِنْ غَيْرِكَ.

that you abstain from what you dislike from others.