John 18:12 Then the detachment of troops and the captain and the officers of the Jews arrested Jesus and bound Him. 13 ¶ And they led Him away to Annas first, for he was the father-in-law of Caiaphas who was high priest that year. 14 Now it was Caiaphas who advised the Jews that it was expedient that one man should die for the people. 15 And Simon Peter followed Jesus, and so did another disciple. Now that disciple was known to the high priest, and went with Jesus into the courtyard of the high priest. 16 But Peter stood at the door outside. Then the other disciple, who was known to the high priest, went out and spoke to her who kept the door, and brought Peter in. 17 Then the servant girl who kept the door said to Peter, "You are not also one of this Man's disciples, are you?" He said, "I am not." 18 Now the servants and officers who had made a fire of coals stood there, for it was cold, and they warmed themselves. And Peter stood with them and warmed himself. 19 The high priest then asked Jesus about His disciples and His doctrine. 20 Jesus answered him, "I spoke openly to the world. I always taught in synagogues and in the temple, where the Jews always meet, and in secret I have said nothing. 21 "Why do you ask Me? Ask those who have heard Me what I said to them. Indeed they know what I said." 22 And when He had said these things, one of the officers who stood by struck Jesus with the palm of his hand, saying, "Do You answer the high priest like that?" 23 Jesus answered him, "If I have spoken evil, bear witness of the evil; but if well, why do you strike Me?" 24 Then Annas sent Him bound to Caiaphas the high priest. 25 Now Simon Peter stood and warmed himself. Therefore they said to him, "You are not also one of His disciples, are you?" He denied it and said, "I am not!" 26 One of the servants of the high priest, a relative of him whose ear Peter cut off, said, "Did I not see you in the garden with Him?" 27 Peter then denied again; and immediately a rooster crowed.
This section has been called by some Jesus’ trial and Peter’s Denial. Jesus honors the Father by trusting in Him through every circumstance and Peter fails miserably. Peter fails because He did not watch and pray as Jesus told him and the disciples to in the garden when Jesus went to pray. Mt 26:41 "Watch and pray, lest you enter into temptation. The spirit indeed is willing, but the flesh is weak." They kept falling asleep and Jesus had already warned Peter that Satan desired to sift him as wheat earlier in Lu 22:31. Then He singles out Peter in Mt 26:40 Then He came to the disciples and found them asleep, and said to Peter, "What? Could you not watch with Me one hour? Peter fails because he thinks he can’t which contradicts 1Co 10:12 Therefore let him who thinks he stands take heed lest he fall. Jesus stands strong because He has prayed and continues to trust the Father. Peter fails because he is proud, he doesn’t pray for help, and lastly because He did not leave when Jesus told them to leave and just take Him. He was somewhere he should have never been. Remember 1Co 10:13 There hath no temptation taken you but such as is common to man: but God is faithful, who will not suffer you to be tempted above that ye are able; but will with the temptation also make a way to escape, that ye may be able to bear it. God will make a way out if you trust Him.