The phrase is found in the Christian Book of Revelation, 13:10: "He that leadeth into captivity shall go into captivity: he that killeth with the sword must be killed with the sword. Here is the patience and the faith of the saints." (Rev.13:10KJV)
Commonly, the expression is understood to mean, "You can expect to become a victim of whatever means you use to get what you want."[1]
A proverb in the Gospel of Matthew, verse 26:52, describes a disciple (identified in the Gospel of John as Simon Peter) drawing a sword to defend against the arrest of Jesus in the Garden of Gethsemane, but is rebuked by Jesus, who tells him to sheath the weapon:
Then said Jesus unto him, Put up again thy sword into his place: for all they that take the sword shall perish with the sword (Matthew 26:52, King James Version)
This exchange looms large in progressive Christian theories of violence and power.