Peter did carry a sword but Christ would not allow him to use it.
John 18:36 Jesus answered, “My kingdom is not of this world. If My kingdom were of this world, My servants would fight, so that I should not be delivered to the Jews; but now My kingdom is not from here.”
Matthew 26:52 But Jesus said to him, “Put your sword in its place, for all who take the sword will perish[a] by the sword.
Matthew 5:39 But I tell you not to resist an evil person. But whoever slaps you on your right cheek, turn the other to him also.
Phillipians 2:5 Let this mind be in you which was also in Christ Jesus, 6 who, being in the form of God, did not consider it robbery to be equal with God, 7 but made Himself of no reputation, taking the form of a bondservant, and coming in the likeness of men. 8 And being found in appearance as a man, He humbled Himself and became obedient to the point of death, even the death of the cross.