(An-Naml) 27 : 65
قُلْ لَا يَعْلَمُ مَنْ فِي السَّمَاوَاتِ وَالْأَرْضِ الْغَيْبَ إِلَّا اللَّهُ ۚ وَمَا يَشْعُرُونَ أَيَّانَ يُبْعَثُونَ

You say: "None in the heavens and earth knows the unseen except Lord Allah, and they don’t perceive when they will be resurrected".

Anybody even Messenger should ask any doubt regarding any matter to the author of Adhikr as explained in verses 16: 43 and 21: 7. See explanation 5: 48; 16: 20-21 and 44