According to Sunni view, Holy Prophet has knowledge of unseen.
As said in Holy Quran:
“These are the tidings of Unseen that We reveal to you in secret”.
Surah-Ale-Imran, verse 44.
“Nor will He disclose to you the secrets of the Unseen. But He chooses of His Apostles (For the purpose)”
Surah-Ale-Imran, verse 179.
“The Knower of Unseen reveals not His secret to anyone. Except to His chosen Messengers”.
Surah-Al-Jinn, verse 26.
Imam Bukhari writes :
Prophet Muhammad (May Allah bless him and grant him peace) stood up in one meeting and he started to tell us about events from the beginning of this world to the end and he told us about heaven and hell and about the people who were going to hell and who were going to heaven and what will be their places in heaven and hell. Of course, some people remember what he told us and some people have forgotten.
(Bukhari, Chapter Bada-Ul-Khalq.)
Imam Muslim writes that:
The Prophet Muhammad (May Allah bless him and grant him peace) led the Fajr prayer and then sat on the pulpit, and until Zuhr he told the people of the things about the Unseen. After Zuhr, he sat on the pulpit and continued until Asar, then sat on the pulpit and continued until Maghrib prayer. He even informed of the dwellers of Paradise and Hell.
(Muslim chapter on Fadial).
Imam Ahmad bin Hanbal quotes the following narration which provides more evidence on the Prophets knowledge :
The Prophet (May Allah bless him and grant him peace) stated, “I have seen my Lord, He put His hands upon my chest, after which everything appeared before me and I recognized everything.
[Musnad Ahmad Ibn Hanbal, vol 5, page 243]
you people can found alot of references from Quran and Ahadith, but this depend upon your believes how much you believe in your prophet.