I enjoyed the company of Allah's Messenger (ﷺ) for three years, and during the other years…

Sahih al-Bukhari Book 61 Hadith 98

Sahih al-Bukhari #3591

Virtues and Merits of the Prophet (pbuh) and his Companions 61:98

Narrated Abu Huraira:

I enjoyed the company of Allah's Messenger (ﷺ) for three years, and during the other years of my life, never was I so anxious to understand the (Prophet's) traditions as I was during those three years. I heard him saying, beckoning with his hand in this way, "Before the Hour you will fight with people who will have hairy shoes and live in Al-Bazir." (Sufyan, the sub-narrator once said, "And they are the people of Al-Bazir.")

Chapter: The signs of Prophethood in Islam

Grade: Sahih