The Torah recounts how multiple times Yitzchak dug wells only to be met with hostility from the Plishtim which prevented him from enjoying the water. Finally, after multiple tries, he managed to dig a well and was able to use the water with no machlokes.
What is the Torah trying to teach us in this story of the wells? The Chofetz Chaim explains that we think the spiritual achievements of the Yitzchak Avinu's of the world come easily, but this is because we only look at the end of the story. We don't see the trial and error, the false starts and failed attempts; we don't see all the wells that were dug that did not produce water or had to be discarded. The Torah wants us to know that even the greatest giants had wells that could not be used.
Ain mayin elah Torah. It takes a lot of digging to finally get that well that produces a spiritual bounty. The difference between gadlus and failure is not giving up along the way.