Jesus’ arrest took place after his agonizing prayer in the Garden of Gethsemane. It was the middle of the night when the mob arrived. There can be little doubt that Jesus saw them approaching. Roman soldiers carried swords and the Jewish temple police had staves.
Judas’ kiss of death was necessary to identify Jesus to the Romans who didn’t know him. He betrayed the One he still called Master. He may not have anticipated Jesus’ fatal sentence before Pilate, but one thing is sure; he regretted making the deal with the Scribes and Pharisees. “I have sinned,” he said on his way to return the thirty pieces of silver.
Matthew 27:5 And he cast down the pieces of silver in the temple and departed and went and hanged himself.