The Imams know all the knowledge that has come to the angels, the prophets and the Messenger

Al-Kāfi|Volume 1|Book 4|Chapter 44