Abdah bin Hazn reported,

The owners of camels and the owners of sheep were boasting against one another, so the Prophet ﷺ said, "Musa was sent as a prophet while he was a shepherd of sheep, Dawud was sent as a prophet while he was a shepherd of sheep, and I was sent while I was tending sheep for my family at Ajyad."

Azami 8529

Sahih

عن عبدة بن حزن قال

تفاخر أهل الإبل وأصحاب الشاء، فقال النبي ﷺ: بعث موسى وهو راعي غنم، وبعث داود وهو راعي غنم، وبعثت أنا، وأنا أرعى غنما لأهلي بأجياد.

الأعظمي 8529صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Section
Prophet ﷺ tending sheep
Numbering
Jami al-Kamil 8529 (2nd edition)
Azami 8529