He said to them, “But now if you have a purse, take it, and also a bag; and if you don’t have a sword, sell your cloak and buy one. Luke 22:36
The problem with your quote is that Jesus never told them to USE the sword. When Peter used his sword, Jesus told him to put it away.