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]