It originated in the 18 century B.C. Code of Hammurabi! Multiple CENTURIES before the Bible was written! It does show up in the Bible but it is not advocated.
"Is there a favorite Bible verse or Bible story that has informed your thinking or your character through life?"
"Well, I think many. I mean, you know, when we get into the Bible, I think many. So many," Trump responded.
“And some people — look, an eye for an eye, you can almost say that," he said. "That’s not a particularly nice thing. But you know, if you look at what’s happening to our country, I mean, when you see what’s going on with our country, how people are taking advantage of us, and how they scoff at us and laugh at us. And they laugh at our face, and they’re taking our jobs, they’re taking our money, they’re taking the health of our country," he continued. "And we have to be firm and have to be very strong. And we can learn a lot from the Bible, that I can tell you."