Jesus was brought to the home of Caiaphas, the high priest, where the council or Sanhedrin were gathered to try Him and find an accusation to bring Him before Pilate, since the Jews were not allowed to put anyone to death. They had to bring in false witnesses and when Jesus told Caiaphas that He was the Christ, the Son of God the council charged Him with blasphemy.
During this time John and Peter have returned and are also in the home of Caiaphas where the trial is taking place. It was during this time that Peter denies that he knows Jesus. When Jesus looks at Peter with love Peter flees and weeps bitterly.