If we take the literal purported lives of certain historical religious figures like Muhammad as a way to live our own lives, then that leads to immoral and barbarous behavior. It is better to see them as inspirations in some spiritual or mystical way.