This is Peter's first denial of his Master; between which and his second denial (of which John saith nothing till he comes to 1 Thessalonians 18:26) the evangelist interposes many things not mentioned by the other evangelists.
Related Commentaries of John 18:17
John 18:17
17 Then saith the damsel that kept the door unto Peter, Art not thou also one of this man's disciples? He saith, I am not.