Amr bin Akhtab reported,

The Messenger of Allah ﷺ led us in the dawn prayer, then ascended the pulpit and addressed us until the time of the noon prayer arrived. He came down, prayed, then ascended the pulpit again and addressed us until the time of the afternoon prayer arrived. He came down, prayed, then ascended the pulpit once more and addressed us until the sun set. He informed us of what had been and what would be, and the most knowledgeable among us is the one who memorized it best.

Azami 1212

Sahih

عن عمرو بن أخطب، قال

صلى بنا رسول الله ﷺ الفجر، وصعد المنبر فخطبنا حتى حضرت الظهر، فنزل فصلي، ثم صعد المنبر. فخطبنا حتى حضرت العصر. ثم نزل فصلى، ثم صعد المنبر، فخطبنا حتى غربت الشمس فأخبرنا بما كان وبما هو كائن. فأعلمنا أحفظنا.

الأعظمي 1212صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Knowledge
Chapter
Encouragement to seek knowledge
Section
Prophet's ﷺ informing about what will occur until the Day of Resurrection
Numbering
Jami al-Kamil 1212 (2nd edition)
Azami 1212