The Catechism in Questions & Answers

166. How did the Apostles behave?

To protect Jesus, Simon Peter drew the sword and cut off the ear of the servant of one of the chief priests (cf. John 18: 10). Jesus, however, held him back and healed the servant.
Jesus did not make use of His divine power, but allowed Himself to be arrested. Thereupon the Apostles left Him and fled.
Later that same night, when Simon Peter was accused of being a disciple of Jesus, He denied it. He denied the Lord three times.

“Now Peter sat outside in the courtyard. And a servant girl came to him, saying, ‘You also were with Jesus of Galilee.’ But he denied it before them all, saying, ‘I do not know what you are saying.’And when he had gone out to the gateway, another girl saw him and said to those who were there, ‘This fellow also was with Jesus of Nazareth.’ But again he denied with an oath, ‘I do not know the Man!’And a little later those who stood by came up and said to Peter, ‘Surely you also are one of them, for your speech betrays you.’ Then he began to curse and swear, saying, ‘I do not know the Man!’ Immediately a rooster crowed. And Peter remembered the word of Jesus who had said to him, ‘Before the rooster crows, you will deny Me three times.’ So he went out and wept bitterly.”
Matthew 26: 69-75