Allah SWT the Almighty revealed: Remember when your Lord said to the angels: 'Verily, I am going to place mankind generations after generations on earth.' They said: 'Will You place therein those who will make mischief therein and shed blood, while we glorify You with praises and thanks (exalted be You above all that they associate with You as partners) and sanctify You.' Allah said: 'I know that which you do not know.'
Allah SWT (God) taught Prophet Adam all the names of everything, then He showed them to the Angels (Malaikah) and said: "Tell Me the names of these if you are truthful." They (Angels) said: "Glory be to You, we have no knowledge except what You have taught us. Verily, it is You, the All-Knower, the All-Wise."
He said: "O Adam! Inform them of their names," and when he had informed them of their names, He said: "Did I not tell you that I know the unseen in the heavens and the earth, and I know what you reveal and what you have been hiding?"