Where there is or not, moslem scholars agreed that to follow islam, it is best for moslems to emulate mahomet, including in areas like fucking kids, raping women and banditry. If mahomet did it, it can't be wrong.
If the message was just to do good deeds, following mahomet is a bad example. mahomet himself did not obey the islamic laws. He had more than 4 wives, didn't he?