عَنْ عَبْدِ اللَّهِ بْنِ مُغَفَّلٍ قَالَ: زَعَمَ ثَابِتُ بْنُ الضَّحَّاكِ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ نَهَى عَنِ الْمُزَارَعَةِ وَأَمَرَ بِالْمُؤَاجَرَةِ وَقَالَ: «لَا بَأْسَ بِهَا» . رَوَاهُ مُسْلِمٌ
Translation

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.