prophet muhammad worked as shepherd for