Talking about taking things out of context. Lets's examine this
Luke 22:35-38: Then Jesus asked them, “When I sent you without purse, bag or sandals, did you lack anything?” “Nothing,” they answered.
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. It is written: ‘And he was numbered with the transgressors’; and I tell you that this must be fulfilled in me. Yes, what is written about me is reaching its fulfillment.”
The disciples said, “See, Lord, here are two swords.” “That is enough,” he replied.
Look at the part"And he was numbered with the transgressors."
Who at that time was known for having swords. Remember reading about roadside bandits and "highwaymen"?
The robbers,bandits,thieves and Rogues were all well known for carrying swords. By having these swords and going about
their way they could have just as easily been numbered in with them.
If you continue reading further in Luke you will see that Jesus made sure they had the swords so it could take place with
Peter about him striking the ear of the slave and taking it off. No where did Jesus say to defend him or retaliate.
Matter of fact if you look closely at Luke 22:49 which states in part "Lord shall we strike with the sword?"
Notice what Jesus told them.
My point is the swords had to be there for Jesus to show them "that he who lives by the sword will die by the sword"
That is why he instructed them to purchase them.
Notice verse 52 gives it all away about how Jesus was reckoned in with the robbers
"Jesus then said to the chief priests and captains of the temple and older men that had come there for him: “Did YOU come out with swords and clubs as against a robber?"
So please read the whole chapter before trying to show Jesus was asking them to get swords to fight back with.
The whole chapter clearly shows what his intentions were.