John 18:10-11 NIV

10 Then Simon Peter, who had a sword, drew it and struck the high priest's servant, cutting off his right ear. (The servant's name was Malchus.)
11 Jesus commanded Peter, "Put your sword away! Shall I not drink the cup1 the Father has given me?"

References for John 18:11