In Mark Z. Danielewski's House of Leaves, there is a footnote somewhere that quotes an unidentified source as saying something like, "The Messiah will not come until the Tears of Esau have ceased to flow." After years of searching, I hit upon what seems to be the source: Martin Buber's "The Rung of Redemption." However, there, Buber says:
... they are the tears that all human beings weep when they ask something for themselves, and pray for it. And truly: Messiah, son of David, will not come ... until you weep because the Divine Presence is exiled [and] you yearn for its return. [emphasis added]
So Buber glosses the prophecy (which he says comes from some "Midrash," but a midrash of what? though a Google search mentions the Zohar, here) as qualitative, not quantitative. Nevertheless, in a New Testament footnote concerning Paul's cryptic remark about fulfilling the sufferings of Jesus Christ, a Catholic analyst mentions a Jewish legend according to which there was a certain amount of suffering that had to be undergone, in history, before the World to Come might emerge. The Zohar is supposedly a transcription of Mosaic information that didn't make its way into the Tanakh, but I digress. Anyway, André Schwarz-Bart, amidst the opening sections of his The Last of the Just, makes similar remarks about a temporal quantity of agony connected to the advent of the Messiah, attributing this prophecy to something called "the Hagganah," though.
Motivation. Several years ago, I misread Nick Bostrom's "Infinite Ethics" and thought he was talking about an infinite temporal, not spatial, distribution-of-moral-value problem. Nonetheless, I hit upon a solution to the temporal problem that crystallized in something I have had go by the enchanting name the meridian theorem (after the LDS phrase "in the meridian of time," modulo Christ's Atonement). This is not (yet) the place to discuss the mathematics of the theorem, which back then I intuitively appreciated but only within the last year found a way to spell out clearly. The point is, I came up with a recapitulation of the Tears-of-Esau prophecy, quantitatively as much as, if not more than, qualitatively; and yet, aside from these obscure Jewish citations, I've not found any writer who seems to have suggested or argued for the same general idea. I scoured TvTropes.org for narrative examples, yet maybe I'm looking at the wrong tropes because I didn't find any there.
At any rate, this seems like such a natural wish to make (that the possibility of further evil would eventually run out) that I would think some philosopher has addressed it, somewhere, in the literature. My gut asks, "Leibniz, maybe?" especially with respect to his claims about ours being "the best of all possible worlds," although from what I remember about his assertions on that score, he rather thought that any quantity of evil "runs out" as soon as it is reached, in the sense that evil only seems evil from our compromised point of view.
So maybe not Leibniz; but then who, if anyone else?