Prophet Muhammad (peace be upon him) was a human being, just like all other humans. However, Allah (Glorified and Exalted be He) chose him to be His Messenger to all people, and informed him of exclusive knowledge during his life that He had not informed anyone else of or favored any other creature with. Allah (Exalted be He) says,
Except to a Messenger (from mankind) whom He has chosen (He informs him of unseen as much as He likes), and then He makes a band of watching guards (angels) to march before him and behind him.
It is also confirmed that the Prophet (peace be upon him) said to his Sahabah (Companions, may Allah be pleased with them all),
Neither your Ruku` (bowing) nor your Khushu` (the heart being submissively attuned to the act of worship) is hidden from me; surely I see you behind my back.
The Prophet (peace be upon him) was basically just like all other human beings, who does not see through a screen that vision cannot penetrate, except for what is substantiated by evidence.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.