Dalai Lama Xiv said this quote

We cannot learn real patience and tolerance from a guru or a friend. They can be practiced only when we come in contact with someone who creates unpleasant experiences.