John 18:15
Simon Peter followed along with another disciple. [Note: Some think this refers to the apostle John himself, but there is no strong evidence in favor of that conclusion]. Now that disciple was [well-] known to the head priest, so was able to enter his courtyard with Jesus
Mark 14:54
But Peter had followed Him from a distance, right into the courtyard of the head priest. He was sitting there with the [Jewish] officers, warming himself by the light of the fire.
Luke 22:54
Then they arrested Jesus and led Him away to the head priest's house [i.e., Caiaphas. See Matt. 26:57]. But Peter followed Him from a distance [i.e., as they went to the head priest's courtyard].
Matthew 26:3
Then the leading priests and elders of the [Jewish] people were gathered in the courtroom of the head priest, named Caiaphas.
Matthew 26:58-68
But Peter followed Him from a distance [as they were going] to the courtyard of the head priest. He went inside [i.e., eventually. See John 18:15-16] and sat down with the [Jewish] officers to see how things would turn out [i.e., with Jesus' trial].