Luke 23:8-18

8 Herod was very glad to see Jesus; for a long time he had wanted to see Him, because he had heard about Him and was hoping to see some miracle[a] performed by Him.
9 So he kept asking Him questions, but Jesus did not answer him.
10 The chief priests and the scribes stood by, vehemently accusing Him.
11 Then Herod, with his soldiers, treated Him with contempt, mocked Him, dressed Him in a brilliant robe, and sent Him back to Pilate.
12 That very day Herod and Pilate became friends.[b] Previously, they had been hostile toward each other.

Jesus or Barabbas

13 Pilate called together the chief priests, the leaders, and the people,
14 and said to them, "You have brought me this man as one who subverts the people. But in fact, after examining Him in your presence, I have found no grounds to charge this man with those things you accuse Him of
15 Neither has Herod, because he sent Him back to us. Clearly, He has done nothing to deserve death.
16 Therefore I will have Him whipped[c]; to discipline or "teach a lesson"; 1 Kg 12:11 , 14 LXX; 2 Ch 10:11 , 14 ; perhaps a way of referring to the Roman scourging; Lat flagellatio and [then] release Him." [
17 For according to the festival he had to release someone to them.][d] [e]
18 Then they all cried out together, "Take this man away! Release Barabbas to us!"

Footnotes 5

Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.