Before Jesus was arrested, Jesus prophesied that His disciples would flee and try to distance themselves from Jesus. Jesus also told Peter that He was praying for Peter to retain his faith, and Jesus asked Peter to support his brethren after Peter returns to the faith. Peter responded by telling Jesus that he, Peter, would never abandon Jesus, but Jesus told Peter that Peter would deny Jesus three times before a rooster crows (a second time, according to Mark).
Then Jesus said to them,You will all fall away because of Me this night [disillusioned about Me, confused, and some even ashamed of Me], for it is written [in the Scriptures],Peter replied to Him,I will strike the Shepherd, and the sheep of the flock will be scattered.But after I am raised [to life], I will go ahead of you [leading the way] to Galilee.Though they all fall away because of You [and doubt and disown You], I will never fall away!Jesus said to him,I assure you and most solemnly say to you, this night, before a rooster crows, you will [completely] deny Me three times.Peter said to Jesus,Even if I have to die with You, I will not deny You!And all the disciples said the same thing.— Matthew 26:31–26:35 (AMP)
Jesus said to them,You will all fall away [and be ashamed and be afraid to be associated with Me as disciples], because it is written,But Peter said to Him,I will strike the Shepherd, and the sheep will be scattered.But after I have been raised [from the dead], I will go ahead of you to Galilee.Even if they all fall away [and desert You, ashamed and afraid of being associated with You], yet I will not [do so]!Jesus said to him,I assure you and most solemnly say to you, this very night, before a rooster crows twice, you will deny [that you even know] Me three times.But Peter kept saying insistently,If I have to die with You, I will not deny You!And they all were saying the same thing as well.— Mark 14:27–14:31 (AMP)
Simon, Simon (Peter), listen! Satan has demanded permission to sift [all of] you like grain; but I have prayed [especially] for you [Peter], that your faith [and confidence in Me] may not fail; and you, once you have turned back again [to Me], strengthen and support your brothers [in the faith].And Peter said to Him,Lord, I am ready to go with You both to prison and to death!Jesus said,I say to you, Peter, before the rooster crows today, you will [utterly] deny three times that you know Me.— Luke 22:31–22:34 (AMP)
Simon Peter said to Him,Lord, where are You going?Jesus answered,Where I am going, you cannot follow Me now; but you will be able to follow later.Peter said to Him,Lord, why cannot I follow You now? I will lay down my life for You!Jesus answered,Will you [really] lay down your life for Me? I assure you and most solemnly say to you, before a rooster crows you will deny and completely disown Me three times.— John 13:36–13:38 (AMP)
While Jesus was being arrested, Peter struck Malchus, who was a slave of the Jewish High Priest Caiaphas and was among the party sent to arrest Jesus, with a sword, severing off Malchus' right ear. Jesus told Peter to stop. Jesus was arrested (so that the prophesies of the Scriptures may come to pass), and the disciples left.
Jesus was sent to the High Priest Caiaphas, and Peter followed from a safe distance. Three of Caiaphas' maid (or one maid and two men, according to Luke and possibly John) recognized Peter was a believer in Jesus Christ, but Peter denied it three times. During the third time, Peter swore that he was not a believer in Jesus Christ. After this third time, a rooster crowed (a second time, according to Mark). Peter then realized that Jesus' prophecy had come true and wept.
Now Peter was sitting outside in the courtyard, and a servant-girl came up to him and said,You too were with Jesus the Galilean.But he denied it before them all, saying,I do not know what you are talking about.And when he had gone out to the gateway, another servant-girl saw him and she said to the bystanders,This man was with Jesus the Nazarene.And again he denied it with an oath,I do not know the man.After a little while the bystanders came up and said to Peter,Surely you are one of them too; for even your [Galilean] accent gives you away.Then he began to curse [that is, to invoke God’s judgment on himself] and swear [an oath],I do not know the man!And at that moment a rooster crowed. And Peter remembered the [prophetic] words of Jesus, when He had said,Before a rooster crows, you will deny Me three times.And he went outside and wept bitterly [in repentance].— Matthew 26:69–26:75 (AMP)
While Peter was down below in the courtyard, one of the servant-girls of the high priest came, and when she saw Peter warming himself, she looked intently at him and said,You were with Jesus the Nazarene, too.But he denied it, saying,I neither know nor understand what you are talking about.Then he went out [of the courtyard] to the porch, [and a rooster crowed.] The servant-girl saw him, and began once more to tell the bystanders,This [man] is one of them.But again he denied it. After a little while, the bystanders again said to Peter,You are in fact one of them, for [it is clear from your accent, that] you are a Galilean, too.But he began to invoke a curse [on himself] and to swear [an oath],I do not know this man you are talking about!Immediately a rooster crowed the second time. And Peter remembered what Jesus said to him:Before a rooster crows twice, you will deny Me three times.And thinking of this, he began weeping [in anguish].— Mark 14:66–14:72 (AMP)
Then they seized Him, and led Him away and brought Him to the [elegant] house of the [Jewish] high priest. And Peter was following at a [safe] distance. After they had kindled a fire in the middle of the courtyard and had sat down together, Peter sat among them. And a servant-girl, seeing him as he sat in the firelight and looking intently at him, said,This man was with Him too.But Peter denied it, saying,Woman, I do not know Him!A little later someone else saw him and said,You are one of them too.But Peter said,Man, I am not!After about an hour had passed, another man began to insist,This man was with Him, for he is a Galilean too.But Peter said,Man, I do not know what you are talking about.Immediately, while he was still speaking, a rooster crowed. The Lord turned and looked at Peter. And Peter remembered the word of the Lord, how He had told him,Before a rooster crows today, you will deny Me three times.And he went out and wept bitterly [deeply grieved and distressed].— Luke 22:54–22:62 (AMP)
Simon Peter and another disciple were following Jesus. Now that disciple was known to the high priest, so he went with Jesus into the courtyard of the [residence of the] high priest; but Peter was standing outside at the door. So the other disciple (John), who was known to the high priest, went out and spoke to the doorkeeper, and brought Peter inside. Then the servant girl who kept the door said to Peter,You are not one of this Man’s disciples, are you?He said,I am not.Now the servants and the officers had made a fire of coals, because it was cold, and they were standing and warming themselves. And Peter was with them, standing and warming himself.— John 18:15–18:18 (AMP)
Now Simon Peter was [still] standing and warming himself. So they said to him,You are not one of His disciples, are you?He denied it and said,I am not.One of the high priest’s servants, a relative of the one whose ear Peter cut off, said,Did I not see you with Him in the garden?So Peter denied it again, and immediately a rooster crowed.— John 18:25–18:27 (AMP)