And when your Lord said to the angels, "I am indeed going to establish a vicegerent on the earth", they said, "Will You establish therein those who would spread discord therein and shed blood? And we glorify You with praises, and sanctify You!" He (Allah) said, "I know that which you do not know."2:30
How did the angels know about the future of this vicegerent who is not even created yet?