Leo Tolstoy said this quote

Only one thing is necessary: we should all have a pure heart, with no anger, hatred, irritation, or hostility in it. If you feel hostility toward another person, think about their inner state. Do not think about yourself, or that you want to prove yourself right. In your quiet, inner thoughts, try to find the good in others. Do not say anything bad about others, even in your own thoughts. When you interact with a person, try to find as much common ground as possible, the more the better, and try to nurture this feeling. To cease being angry with a person and instead to seek peace, forgiveness and love toward him, remind yourself of any sins you may have in common and compare them.