To some adherents of Islam the correct punishment for theft is the amputation of a limb, but to others such a penalty is more evil than stealing. To some Christians the proper penalty for murder is ritual murder by the state, but to others capital punishment is an evil to be avoided at all costs. Deciding which is good and which is evil is not a simple task, and getting it wrong means either punishing the good or rewarding the evil, both furthering evil. As humanity is only effective as a group, the judgement of good or evil must be the recognition of what is good and what is bad for the group. Hence Good is that which improves the lot of a community.
Evil is that which weakens the lot of a community.
But knowing which is which is a difficult task and can only be resolved by wisdom. The ability to decide what is good and what is evil, is the function of an understanding. The better the understanding, the greater its ability to recognise right from wrong, and the more wise it is. So wisdom can be defined as the ability to distinguish good from evil. The Importance Of Religion Naturally distinguishing good from evil is crucial for any community which is why religion is the foundation of a community, because that is the concern of religion.