What does John 18:1-3 mean?

1 When Jesus had spoken these words, he went forth with his disciples over the brook Cedron, where was a garden, into the which he entered, and his disciples. 2 And Judas also, which betrayed him, knew the place: for Jesus ofttimes resorted thither with his disciples. 3 Judas then, having received a band of men and officers from the chief priests and Pharisees, cometh thither with lanterns and torches and weapons. (John 18:1-3 KJV)

William Burkitt’s Commentary

No sooner had our dear Lord ended his divine prayer, recorded in the foregoing chapter, but he goes forth to meet his sufferings with a willing cheerfulness. He retires with his disciples into a garden, not to hide and shelter himself from his enemies; for, if so, it had been the most improper place he could have chosen; it being the accustomed place where he was wont to pray, and a place well known to Judas, who was now coming to seek him. Judas which betrayed him knew the place; for Jesus oft-times resorted thither with his disciples; so that Christ repaired to this garden, not to shun but to meet the enemy, to offer himself a prey to the wolves, which in the garden hunted him, and laid hold upon him; he also resorted to this garden now for privacy, that he might freely pour out his soul to God.

Learn hence, that the Lord Jesus Christ was praying to his Father in the garden, when Judas with his black guard came to apprehend him.

As the sin of the first Adam, which brought destruction upon his posterity, was committed in a garden, so the salutary passion of the second Adam, which was to rescue us from that destruction, did begin in a garden also.