Simon Peter was following Jesus, as was another disciple. That disciple was an acquaintance of the high priest; so he went with Jesus into the high priest’s courtyard.
Then they led Jesus from Caiaphas to the governor’s headquarters. It was early morning. They did not enter the headquarters themselves; otherwise they would be defiled and unable to eat the Passover.