The phrase "an eye for an eye" is often misunderstood as permission for revenge. However, in the Bible, it actually sets limits on retaliation.
And Jesus takes this further in the Sermon on the Mount, calling us to "turn the other cheek," challenges us to respond with love, just as God loves us, even when we're hurt or offended.