Allah’s knowledge is by essence, while the knowledge of the Prophet or Imam is outside of their essence, that is, it has been granted them by Allah.