وَعِنْدَهُ مَفَاتِحُ الْغَيْبِ لَا يَعْلَمُهَا إِلَّا هُوَ
With Him are the keys of the unseen; none knows them except Him. (Al-Anʿām 6:59)
Allah’s knowledge of the unseen is inherent and encompassing. Prophets know unseen matters disclosed to them through revelation granted by Allah.
No created being possesses knowledge equal to Allah’s knowledge.