This is similar to Matthew, chapter 26:70-71, and Luke, chapter 22:57-58. John, chapter 18:17, has a simple denial. Peter was warming himself at the fire in the high priest’s courtyard, when a young servant girl of the high priest came up to him and said that he had been with Jesus. Mark said that Peter denied this (ὁ δὲ ἠρνήσατο). Peter said that he did not know or even understand what she was talking about (λέγων Οὔτε οἶδα οὔτε ἐπίσταμαι σὺ τί λέγεις). Then Peter walked away into the forecourt, the porch, or gateway to the courtyard (καὶ ἐξῆλθεν ἔξω εἰς τὸ προαύλιον). Some ancient Orthodox manuscripts had the cock crow at this point (καὶ ἀλέκτωρ ἐφώνησεν). This first denial story of Peter, the great leader and follower of Jesus, was in all 4 gospels. Not all leaders are perfect.
This is similar to Mark, chapter 14:66-68, and Luke, chapter 22:56-57, but Peter was warming himself and the cock crowed in Mark. John, chapter 18:17, has a simple denial. Matthew said that Peter was sitting outside in the high priest’s courtyard (Ὁ δὲ Πέτρος ἐκάθητο ἔξω ἐν τῇ αὐλῇ). Then a young servant girl or maid of the high priest came up to him (καὶ προσῆλθεν αὐτῷ μία παιδίσκη). She said that Peter had been with Jesus, the Galilean (λέγουσα Καὶ σὺ ἦσθα μετὰ Ἰησοῦ τοῦ Γαλιλαίου). However, he denied it in front of all of them (ὁ δὲ ἠρνήσατο ἔμπροσθεν πάντων), as he said that he did not know what they were talking about (λέγων Οὐκ οἶδα τί λέγεις). This first denial story of Peter, the great leader, was in all 4 gospels.