Just to state, I don't necessarily believe Jesus contradicted Himself. But these parts of Scripture sound like a contradiction, and I would like to hear any thoughts on how this can be reconciled.
I thought of this question after reading this post and these verses:
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.
But then when they come to seize Jesus, after Judas betrays Him with a kiss, this happens:
51 And behold, one of those who were with Jesus reached out his hand and drew his sword and, striking the body servant of the high priest, cut off his ear.
52 Then Jesus said to him, Put your sword back into its place, for all who draw the sword will die by the sword.
As per the answers in the linked post, Jesus had them get swords so the prophecies could be fulfilled: That He would be counted amongst the transgressors, and His arrest would be certain. But then why would Jesus reprove Peter of using his sword the way he did in the latter verses, when that is what He wanted to happen? Perhaps "contradiction" wasn't the best choice of wording, feel free to edit if you can word it better for me :)