When others, out of jealousy
Treat me wrongly with abuse, slander, and scorn,
May I take upon myself the defeat
And offer to others the victory.
by His Holiness the Dalai Lama
The point that is made here is that when others provoke you, perhaps for no reason or unjustly, instead of reacting in a negative way, as a true practitioner of altruism you should be able to be tolerant towards them. You should remain unperturbed by such treatment. In the next verse we learn that not only should we be tolerant of such people, but in fact we should view them as our spiritual teachers. It reads:
When someone whom I have helped,
Or in whom I have placed great hopes,
Mistreats me in extremely hurtful ways,
May I regard him still as my precious teacher.
In Shantideva’s Guide to the Bodhisattva’s Way of Life, there is an extensive discussion of how we can develop this kind of attitude, and how we can actually learn to see those who perpetrate harm on us as objects of spiritual learning. And also, in the third chapter of Chandrakirti’s Entry to the Middle Way, there are profoundly inspiring and effective teachings on the cultivation of patience and tolerance.