The Book of Miscellany
كتاب المقدمات
(69) Chapter: Desirability of Seclusion at times of corruption committed by the people of the World
(69) - باب استحباب العزلة عند فساد الناس والزمان أو الخوف من فتنة فى الدين ووقوع فى حرام وشبهات ونحوها
Riyad as-Salihin 599 
Abu Hurairah (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "Every Prophet has tended sheep". He was asked: "And did you?" He replied, "Yes, I tended them for a few carats for the Makkans."

[Al-Bukhari].

وعن أبي هريرة رضي الله عنه عن النبي صلى الله عليه وسلم قال‏:‏ ‏"‏ما بعث الله نبياً إلا رعى الغنم” فقال أصحابه‏:‏ أنت‏؟‏ قال‏:‏ كنت أرعاها على قراريط لأهل مكة”‏.‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 599
In-book reference : Introduction, Hadith 599