The idea of an “eye for an eye” as fair punishment is part of the Bible’s Old Testament. In the New Testament, Jesus Christ instructs his followers to reject that teaching and instead turn the other cheek.
And the Lord told him: “Listen to all that the people are saying to you; it is not you they have rejected, but they have rejected me as their king.1 Samuel 8:7 NIV