Qays bin Abi Hazim (may Allah have mercy on him) narrates: I heard Abu Hurayrah (may Allah be pleased with him) say: I remained in the company of the Messenger of Allah (peace and blessings be upon him) for three years.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3924