Now He entered the synagogue again, and a man was there who had a paralyzed hand. In order to accuse Him, they were watching Him closely to see whether He would heal him on the Sabbath. He told the man with the paralyzed hand, “Stand before us.” Then He said to them, “Is it lawful on the Sabbath to do good or to do evil, to save life or to kill?” But they were silent. After looking around at them with anger and sorrow at the hardness of their hearts, He told the man, “Stretch out your hand.” So he stretched it out, and his hand was restored. Immediately the Pharisees went out and started plotting with the Herodians against Him, how they might destroy Him.
(Mark 3:1-6 Holman Christian Standard Bible ©®)
When my anger against someone is sanctified by my sorrow at their hardness, my thoughts, words and works will be more likely to be done righteously. The person may not change, but I have not failed, because my anger is under the anointing of love and self-control when it is under the influence of the Spirit.