All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallahu ʻalayhi wa sallam, is His slave and Messenger.
The type of knowledge that makes its acquirer worthy of praise and reward is the knowledge of Allah and the related knowledge of the divine Books, Messengers, the Last Day, and the details of the Shariah. There is no doubt that the Prophet, sallallahu ʻalayhi wa sallam, was at the pinnacle of such knowledge, and none of the jinn or human beings could ever come close to him in this regard, let alone excel over him. It was authentically reported that the Prophet, sallallahu ʻalayhi wa sallam, said, “I am the most knowling of Allah and the most fearful of Him among you.”
As for the knowledge of the details of worldly affairs which, if someone knows them, he is not praised, and if someone is ignorant of them, he is not dispraised, then someone other than the Prophet, sallallahu ʻalayhi wa sallam, might have more knowledge of it than him. This does not undermine the honorable status of the Prophet, sallallahu ʻalayhi wa sallam, in the slightest; Allah forbids. The Prophet, sallallaahu ʻalayhi wa sallam, said, “You are more knowing of the affairs of your world.” [Muslim]
It is most likely that this was what the shaykh meant.
In any case, you should disregard Waswaas and give it no attention whatsoever, as getting carried away with it leads to evil consequences.
Allah knows best.