John 18:10

Then Simon Peter, having a sword, drew it and struck the high priest's servant, and cut off his right ear. The servant's name was Malchus.

Surrounding context

18:9 that the saying might be fulfilled which He spoke, "Of those whom You gave Me I have lost none."

18:10 Then Simon Peter, having a sword, drew it and struck the high priest's servant, and cut off his right ear. The servant's name was Malchus.

18:11 So Jesus said to Peter, "Put your sword into the sheath. Shall I not drink the cup which My Father has given Me?"

Translation and sources