Abu Huraira reported the Prophet as saying, “God has not sent a prophet who did not work as a shepherd.” His companions asked whether this was also true of him and he replied, “Yes, I used to be a shepherd for the people of Mecca for a payment of some qirats.”
Bukhari transmitted it.