Zohar
Similarly, David said to the Holy One, blessed be He: (Psalms 39:5) "Hashem, make me know my end," what is the portion of my lot? And he had no rest until he was told, "Sit you at My right hand" (Psalms 110:1). Come and behold: the Holy One, blessed be He, told Noah as well: "The End of all Flesh is come before Me." Noah asked, "which end"? (Hashem answers:) It is the end that brought darkness upon the faces of the creatures, being the End of all Flesh.